Skip to content

Commit

Permalink
RCTTurboModuleManager | Fix narrowing conversion. (facebook#39829)
Browse files Browse the repository at this point in the history
Summary:

Changelog:
    [iOS][Fixed] - Fixed narrowing conversion compilation error.

Reviewed By: sodastsai

Differential Revision: D49948385
  • Loading branch information
Florian Sauer authored and facebook-github-bot committed Oct 5, 2023
1 parent fdbfc4a commit 969e8fd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ - (instancetype)initWithBridgeProxy:(RCTBridgeProxy *)bridgeProxy
.jsInvoker = _jsInvoker,
.nativeMethodCallInvoker = nativeMethodCallInvoker,
.isSyncModule = methodQueue == RCTJSThread,
.shouldVoidMethodsExecuteSync = RCTTurboModuleSyncVoidMethodsEnabled(),
.shouldVoidMethodsExecuteSync = (bool)RCTTurboModuleSyncVoidMethodsEnabled(),
};

auto turboModule = [(id<RCTTurboModule>)module getTurboModule:params];
Expand Down Expand Up @@ -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<ObjCInteropTurboModule>(params);
Expand Down

0 comments on commit 969e8fd

Please sign in to comment.