mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-19 20:18:49 +00:00
Fix C4365 (signed/unsigned mismatch) warning on 32-bit Windows (#3398)
This commit is contained in:
parent
e7d6eb6794
commit
93e81bb5d8
@ -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<uint32_t>(x >> 32))) return 63 ^ (r + 32);
|
||||
if (_BitScanReverse(&r, static_cast<uint32_t>(x >> 32))) return 63 ^ static_cast<int>(r + 32);
|
||||
// Scan the low 32 bits.
|
||||
_BitScanReverse(&r, static_cast<uint32_t>(x));
|
||||
# endif
|
||||
|
Loading…
Reference in New Issue
Block a user