diff --git a/deps/ox/src/ox/std/CMakeLists.txt b/deps/ox/src/ox/std/CMakeLists.txt index 00d18b16..e327ec7a 100644 --- a/deps/ox/src/ox/std/CMakeLists.txt +++ b/deps/ox/src/ox/std/CMakeLists.txt @@ -13,6 +13,8 @@ add_library( trace.cpp ) +target_compile_options(OxStd PRIVATE -Wsign-conversion) + if(NOT OX_BARE_METAL) set_property( TARGET diff --git a/deps/ox/src/ox/std/bit.hpp b/deps/ox/src/ox/std/bit.hpp index cfde8796..ef68c8b4 100644 --- a/deps/ox/src/ox/std/bit.hpp +++ b/deps/ox/src/ox/std/bit.hpp @@ -24,7 +24,7 @@ typename enable_if::type bit_cast(From src) noex template [[nodiscard]] constexpr T rotl(T i, int shift) noexcept { constexpr auto bits = sizeof(i) * 8; - return (i << shift) | (i >> (bits - shift)); + return (i << static_cast(shift)) | (i >> (bits - static_cast(shift))); } template