diff --git a/ReactCommon/react/renderer/core/RawPropsParser.cpp b/ReactCommon/react/renderer/core/RawPropsParser.cpp index 76b0f163dc..359b9f2f35 100644 --- a/ReactCommon/react/renderer/core/RawPropsParser.cpp +++ b/ReactCommon/react/renderer/core/RawPropsParser.cpp @@ -97,7 +97,7 @@ void RawPropsParser::preparse(RawProps const &rawProps) const noexcept { rawProps.keyIndexToValueIndex_.resize(keyCount, kRawPropsValueIndexEmpty); // Resetting the cursor, the next increment will give `0`. - rawProps.keyIndexCursor_ = keyCount - 1; + rawProps.keyIndexCursor_ = static_cast(keyCount - 1); switch (rawProps.mode_) { case RawProps::Mode::Empty: