From 969e8fd02257a6844d155a954a61078f5bce7287 Mon Sep 17 00:00:00 2001 From: Florian Sauer Date: Thu, 5 Oct 2023 04:07:39 -0700 Subject: [PATCH] RCTTurboModuleManager | Fix narrowing conversion. (#39829) Summary: Changelog: [iOS][Fixed] - Fixed narrowing conversion compilation error. Reviewed By: sodastsai Differential Revision: D49948385 --- .../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);