Fix for 32-bit compilation

Fixes #225
This commit is contained in:
Adam Sawicki 2022-01-26 13:51:12 +01:00
parent a4d39851fd
commit 5bd5975873

View File

@ -3133,7 +3133,7 @@ static inline uint8_t VmaBitScanMSB(uint64_t mask)
return static_cast<uint8_t>(__builtin_clzll(mask)); return static_cast<uint8_t>(__builtin_clzll(mask));
#else #else
uint8_t pos = 63; uint8_t pos = 63;
uint64_t bit = 1 << 63; uint64_t bit = 1u << 63;
do do
{ {
if (mask & bit) if (mask & bit)