Skip to content

Commit ed9931f

Browse files
Florian Sauerfacebook-github-bot
Florian Sauer
authored andcommitted
RCTTurboModuleManager | Fix narrowing conversion. (#39829)
Summary: Pull Request resolved: #39829 Changelog: [iOS][Fixed] - Fixed narrowing conversion compilation error. Reviewed By: sodastsai Differential Revision: D49948385 fbshipit-source-id: 84385b90c1998d99980f1afd8b62e94202301afe
1 parent ce39931 commit ed9931f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/react-native/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTTurboModuleManager.mm

+2-2
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ - (instancetype)initWithBridgeProxy:(RCTBridgeProxy *)bridgeProxy
375375
.jsInvoker = _jsInvoker,
376376
.nativeMethodCallInvoker = nativeMethodCallInvoker,
377377
.isSyncModule = methodQueue == RCTJSThread,
378-
.shouldVoidMethodsExecuteSync = RCTTurboModuleSyncVoidMethodsEnabled(),
378+
.shouldVoidMethodsExecuteSync = (bool)RCTTurboModuleSyncVoidMethodsEnabled(),
379379
};
380380

381381
auto turboModule = [(id<RCTTurboModule>)module getTurboModule:params];
@@ -438,7 +438,7 @@ - (instancetype)initWithBridgeProxy:(RCTBridgeProxy *)bridgeProxy
438438
.jsInvoker = _jsInvoker,
439439
.nativeMethodCallInvoker = std::move(nativeMethodCallInvoker),
440440
.isSyncModule = methodQueue == RCTJSThread,
441-
.shouldVoidMethodsExecuteSync = RCTTurboModuleSyncVoidMethodsEnabled(),
441+
.shouldVoidMethodsExecuteSync = (bool)RCTTurboModuleSyncVoidMethodsEnabled(),
442442
};
443443

444444
auto turboModule = std::make_shared<ObjCInteropTurboModule>(params);

0 commit comments

Comments
 (0)