diff --git a/packages/react-native/ReactCommon/yoga/cmake/project-defaults.cmake b/packages/react-native/ReactCommon/yoga/cmake/project-defaults.cmake index 08f50a4eced8f5..c262bac8af89af 100644 --- a/packages/react-native/ReactCommon/yoga/cmake/project-defaults.cmake +++ b/packages/react-native/ReactCommon/yoga/cmake/project-defaults.cmake @@ -17,7 +17,7 @@ add_compile_options( # "Standard C++ exception handling" (C++ stack unwinding including extern c) /EHsc # Enable warnings and warnings as errors - /W3 + /W4 /WX # Disable RTTI $<$:/GR-> diff --git a/packages/react-native/ReactCommon/yoga/yoga/bits/NumericBitfield.h b/packages/react-native/ReactCommon/yoga/yoga/bits/NumericBitfield.h index 63f7eb657bb6aa..d6102409b2b787 100644 --- a/packages/react-native/ReactCommon/yoga/yoga/bits/NumericBitfield.h +++ b/packages/react-native/ReactCommon/yoga/yoga/bits/NumericBitfield.h @@ -34,7 +34,7 @@ template < typename Enum, std::enable_if_t<(ordinalCount() > 0), bool> = true> constexpr uint8_t minimumBitCount() { - return details::log2ceilFn(ordinalCount() - 1); + return details::log2ceilFn(static_cast(ordinalCount() - 1)); } template