summaryrefslogtreecommitdiff
path: root/include/my_bit.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/my_bit.h')
-rw-r--r--include/my_bit.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/my_bit.h b/include/my_bit.h
index 485a8d2d9ec..24c62d09ce7 100644
--- a/include/my_bit.h
+++ b/include/my_bit.h
@@ -50,7 +50,7 @@ static inline CONSTEXPR uint my_bit_log2_hex_digit(uint8 value)
}
static inline CONSTEXPR uint my_bit_log2_uint8(uint8 value)
{
- return value & 0xF0 ? my_bit_log2_hex_digit(value >> 4) + 4:
+ return value & 0xF0 ? my_bit_log2_hex_digit((uint8) (value >> 4)) + 4:
my_bit_log2_hex_digit(value);
}
static inline CONSTEXPR uint my_bit_log2_uint16(uint16 value)