1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

Changed the function my_set_bits() to return uint64 instead of uint32.

Corrected an assertion in the constructor for the class Sys_var_flagset.
This commit is contained in:
Igor Babaev
2017-08-14 17:05:41 -07:00
parent 9d85323007
commit 596bdc2dbe
2 changed files with 3 additions and 3 deletions

View File

@@ -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