Skip to content

Commit

Permalink
Fix implicit conversion warning in RCTInspector.mm (facebook#23577)
Browse files Browse the repository at this point in the history
Summary:
Fixes Xcode warning: `Implicit conversion loses integer precision: 'NSInteger' (aka 'long') to 'int'`.

[iOS] [Fixed] - Fix implicit conversion warning in RCTInspector.mm
Pull Request resolved: facebook#23577

Differential Revision: D14169498

Pulled By: hramos

fbshipit-source-id: c877a46b2b583c96bc977308ed28bdc0b0f2b517
  • Loading branch information
fson authored and facebook-github-bot committed Feb 21, 2019
1 parent 286abc5 commit 0cffdaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion React/Inspector/RCTInspector.mm
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ @implementation RCTInspector
+ (RCTInspectorLocalConnection *)connectPage:(NSInteger)pageId
forRemoteConnection:(RCTInspectorRemoteConnection *)remote
{
auto localConnection = getInstance()->connect(pageId, std::make_unique<RemoteConnection>(remote));
auto localConnection = getInstance()->connect((int)pageId, std::make_unique<RemoteConnection>(remote));
return [[RCTInspectorLocalConnection alloc] initWithConnection:std::move(localConnection)];
}

Expand Down

0 comments on commit 0cffdaa

Please sign in to comment.