mirror of
https://github.com/fmtlib/fmt.git
synced 2026-08-03 20:14:20 +02:00
7077b016cc
Use num_bits<UInt>() == 32 instead of sizeof(UInt) == 4 in do_format_decimal. The magic-number two-digit algorithm requires exactly 32 value bits, so this is more precise on platforms where CHAR_BIT != 8 and is consistent with existing num_bits<T>() usage.