mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Fix CQS signal facebook-hte-BadImplicitCast in xplat/jsi/jsi/test (#57942)
Summary: Pull Request resolved: https://github.com/react/react-native/pull/57942 Reviewed By: Daniel9z Differential Revision: D115846369 fbshipit-source-id: f28285263cd970cfb88c9d3aa5c4428e97bd3206
This commit is contained in:
1 parent
e334b9318d
commit
b80bc19dc7
1 file changed
+2
-1
@@ -1105,7 +1105,8 @@ namespace {
|
||||
|
||||
unsigned countOccurences(const std::string& of, const std::string& in) {
|
||||
unsigned occurences = 0;
|
||||
std::string::size_type lastOccurence = -1;
|
||||
std::string::size_type lastOccurence =
|
||||
static_cast<std::string::size_type>(-1);
|
||||
while ((lastOccurence = in.find(of, lastOccurence + 1)) !=
|
||||
std::string::npos) {
|
||||
occurences++;
|
||||
|
||||
Reference in new issue
Block a user