From b80bc19dc72fa421c71eb97b64fea6e69f8c18e7 Mon Sep 17 00:00:00 2001 From: generatedunixname910664361436750 Date: Thu, 13 Aug 2026 07:10:39 -0700 Subject: [PATCH] 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 --- packages/react-native/ReactCommon/jsi/jsi/test/testlib.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/react-native/ReactCommon/jsi/jsi/test/testlib.cpp b/packages/react-native/ReactCommon/jsi/jsi/test/testlib.cpp index c4afbc1c0e3..9c056ef0379 100644 --- a/packages/react-native/ReactCommon/jsi/jsi/test/testlib.cpp +++ b/packages/react-native/ReactCommon/jsi/jsi/test/testlib.cpp @@ -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(-1); while ((lastOccurence = in.find(of, lastOccurence + 1)) != std::string::npos) { occurences++;