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