mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-30 02:37:36 +02:00
Fix C4365 (signed/unsigned mismatch) warning on 32-bit Windows (#3398)
This commit is contained in:
@ -225,7 +225,7 @@ inline auto clzll(uint64_t x) -> int {
|
|||||||
_BitScanReverse64(&r, x);
|
_BitScanReverse64(&r, x);
|
||||||
# else
|
# else
|
||||||
// Scan the high 32 bits.
|
// 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.
|
// Scan the low 32 bits.
|
||||||
_BitScanReverse(&r, static_cast<uint32_t>(x));
|
_BitScanReverse(&r, static_cast<uint32_t>(x));
|
||||||
# endif
|
# endif
|
||||||
|
Reference in New Issue
Block a user