From 4056af6d7ffdf4d13bb776b7ea1db2a6b52d4d75 Mon Sep 17 00:00:00 2001 From: Jack O'Connor Date: Mon, 10 Jan 2022 21:02:37 -0500 Subject: [PATCH] silence a couple more warnings on 32-bit Windows https://github.com/BLAKE3-team/BLAKE3/issues/218#issuecomment-1009510462 --- c/blake3_impl.h | 4 ++-- 1 file 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