1
0
Fork 0
mirror of https://github.com/BLAKE3-team/BLAKE3 synced 2024-05-18 03:56:08 +02:00

silence a couple more warnings on 32-bit Windows

https://github.com/BLAKE3-team/BLAKE3/issues/218#issuecomment-1009510462
This commit is contained in:
Jack O'Connor 2022-01-10 21:02:37 -05:00
parent a4ce789f28
commit 4056af6d7f

View File

@ -96,11 +96,11 @@ static unsigned int highest_one(uint64_t x) {
#elif defined(_MSC_VER) && defined(IS_X86_32)
if(x >> 32) {
unsigned long index;
_BitScanReverse(&index, x >> 32);
_BitScanReverse(&index, (unsigned long)(x >> 32));
return 32 + index;
} else {
unsigned long index;
_BitScanReverse(&index, x);
_BitScanReverse(&index, (unsigned long)x);
return index;
}
#else