mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-03 14:09:31 +03:00
Merge branch 'dev' into dev2
This commit is contained in:
commit
738e98690f
1 changed files with 2 additions and 2 deletions
|
@ -938,7 +938,7 @@ static inline size_t mi_clz(size_t x) {
|
|||
#else
|
||||
_BitScanReverse64(&idx, x);
|
||||
#endif
|
||||
return ((MI_SIZE_BITS - 1) - idx);
|
||||
return ((MI_SIZE_BITS - 1) - (size_t)idx);
|
||||
}
|
||||
static inline size_t mi_ctz(size_t x) {
|
||||
if (x==0) return MI_SIZE_BITS;
|
||||
|
@ -948,7 +948,7 @@ static inline size_t mi_ctz(size_t x) {
|
|||
#else
|
||||
_BitScanForward64(&idx, x);
|
||||
#endif
|
||||
return idx;
|
||||
return (size_t)idx;
|
||||
}
|
||||
|
||||
#else
|
||||
|
|
Loading…
Add table
Reference in a new issue