From ed9931f456ea9b7b006d2741223c882186afe368 Mon Sep 17 00:00:00 2001 From: Florian Sauer Date: Thu, 5 Oct 2023 05:42:53 -0700 Subject: [PATCH] RCTTurboModuleManager | Fix narrowing conversion. (#39829) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/39829 Changelog: [iOS][Fixed] - Fixed narrowing conversion compilation error. Reviewed By: sodastsai Differential Revision: D49948385 fbshipit-source-id: 84385b90c1998d99980f1afd8b62e94202301afe --- .../core/platform/ios/ReactCommon/RCTTurboModuleManager.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-native/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTTurboModuleManager.mm b/packages/react-native/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTTurboModuleManager.mm index 43111495217436..a0c98c1995140e 100644 --- a/packages/react-native/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTTurboModuleManager.mm +++ b/packages/react-native/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTTurboModuleManager.mm @@ -375,7 +375,7 @@ - (instancetype)initWithBridgeProxy:(RCTBridgeProxy *)bridgeProxy .jsInvoker = _jsInvoker, .nativeMethodCallInvoker = nativeMethodCallInvoker, .isSyncModule = methodQueue == RCTJSThread, - .shouldVoidMethodsExecuteSync = RCTTurboModuleSyncVoidMethodsEnabled(), + .shouldVoidMethodsExecuteSync = (bool)RCTTurboModuleSyncVoidMethodsEnabled(), }; auto turboModule = [(id)module getTurboModule:params]; @@ -438,7 +438,7 @@ - (instancetype)initWithBridgeProxy:(RCTBridgeProxy *)bridgeProxy .jsInvoker = _jsInvoker, .nativeMethodCallInvoker = std::move(nativeMethodCallInvoker), .isSyncModule = methodQueue == RCTJSThread, - .shouldVoidMethodsExecuteSync = RCTTurboModuleSyncVoidMethodsEnabled(), + .shouldVoidMethodsExecuteSync = (bool)RCTTurboModuleSyncVoidMethodsEnabled(), }; auto turboModule = std::make_shared(params);