Cleanup warning suppression

This commit is contained in:
Victor Zverovich
2025-05-24 09:37:01 -07:00
parent ea985e84f8
commit 1ff0b7f5e1
2 changed files with 9 additions and 11 deletions

View File

@@ -1225,8 +1225,7 @@ FMT_CONSTEXPR auto do_format_base2e(int base_bits, Char* out, UInt value,
out += size;
do {
const char* digits = upper ? "0123456789ABCDEF" : "0123456789abcdef";
unsigned digit = static_cast<unsigned>(
value & ((static_cast<UInt>(1) << base_bits) - 1));
unsigned digit = static_cast<unsigned>(value & ((1u << base_bits) - 1));
*--out = static_cast<Char>(base_bits < 4 ? static_cast<char>('0' + digit)
: digits[digit]);
} while ((value >>= base_bits) != 0);