Skip to content

Commit

Permalink
Fix C4365 (signed/unsigned mismatch) warning on 32-bit Windows (#3398)
Browse files Browse the repository at this point in the history
  • Loading branch information
louiswins authored Apr 21, 2023
1 parent e7d6eb6 commit 93e81bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/fmt/format.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 93e81bb

Please sign in to comment.