From de2e1bd1d67e30aee4b2b9a78c0decd95143a2cb Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sun, 8 Jul 2018 01:40:53 -0500 Subject: [PATCH] [ox/std] Fix onMask's default bits value to use the number of bits instead of bytes --- deps/ox/src/ox/std/bitops.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps/ox/src/ox/std/bitops.hpp b/deps/ox/src/ox/std/bitops.hpp index 2b9fd1db..70b2bf7b 100644 --- a/deps/ox/src/ox/std/bitops.hpp +++ b/deps/ox/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;