diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/my_bit.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/my_bit.h b/include/my_bit.h index 01cad95792c..0afeffff918 100644 --- a/include/my_bit.h +++ b/include/my_bit.h @@ -119,9 +119,9 @@ static inline uint32 my_reverse_bits(uint32 key) a number with the n lowest bits set an overflow-safe version of (1 << n) - 1 */ -static inline uint32 my_set_bits(int n) +static inline uint64 my_set_bits(int n) { - return (((1UL << (n - 1)) - 1) << 1) | 1; + return (((1ULL << (n - 1)) - 1) << 1) | 1; } C_MODE_END |