diff --git a/src/ox/std/bitops.hpp b/src/ox/std/bitops.hpp index 2b9fd1db7..70b2bf7be 100644 --- a/src/ox/std/bitops.hpp +++ b/src/ox/std/bitops.hpp @@ -17,7 +17,7 @@ inline constexpr T rotateLeft(T i, int shift) { } template -constexpr T onMask(int bits = sizeof(T)) { +constexpr T onMask(int bits = sizeof(T) * 8) { T out = 0; for (auto i = 0; i < bits; i++) { out |= static_cast(1) << i;