aboutsummaryrefslogtreecommitdiff
path: root/c/blake3_impl.h
diff options
context:
space:
mode:
authorJack O'Connor <[email protected]>2022-01-10 21:02:37 -0500
committerJack O'Connor <[email protected]>2022-01-10 21:02:37 -0500
commit4056af6d7ffdf4d13bb776b7ea1db2a6b52d4d75 (patch)
tree2a42452337c62a657357666fe9938833b1bdc1d5 /c/blake3_impl.h
parenta4ce789f286bf61e848ae9c02ae4719f25919403 (diff)
silence a couple more warnings on 32-bit Windows
https://github.com/BLAKE3-team/BLAKE3/issues/218#issuecomment-1009510462
Diffstat (limited to 'c/blake3_impl.h')
-rw-r--r--c/blake3_impl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/c/blake3_impl.h b/c/blake3_impl.h
index ba2e91c..cc5672f 100644
--- a/c/blake3_impl.h
+++ b/c/blake3_impl.h
@@ -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