From 93e81bb5d8469b7b11cebcdd169ed260055efccc Mon Sep 17 00:00:00 2001 From: Louis Wilson Date: Thu, 20 Apr 2023 17:36:05 -0700 Subject: [PATCH] Fix C4365 (signed/unsigned mismatch) warning on 32-bit Windows (#3398) --- include/fmt/format.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/format.h b/include/fmt/format.h index d370358a..04deefd3 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -225,7 +225,7 @@ inline auto clzll(uint64_t x) -> int { _BitScanReverse64(&r, x); # else // Scan the high 32 bits. - if (_BitScanReverse(&r, static_cast(x >> 32))) return 63 ^ (r + 32); + if (_BitScanReverse(&r, static_cast(x >> 32))) return 63 ^ static_cast(r + 32); // Scan the low 32 bits. _BitScanReverse(&r, static_cast(x)); # endif