mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-29 18:27:40 +02:00
Fix ambiguous overload
This commit is contained in:
@ -1602,7 +1602,7 @@ FMT_CONSTEXPR auto write_exponent(int exp, OutputIt out) -> OutputIt {
|
||||
} else {
|
||||
*out++ = static_cast<Char>('+');
|
||||
}
|
||||
unsigned uexp = to_unsigned(exp);
|
||||
auto uexp = static_cast<uint32_t>(exp);
|
||||
if (is_constant_evaluated()) {
|
||||
if (uexp < 10) *out++ = '0';
|
||||
return format_decimal<Char>(out, uexp, count_digits(uexp));
|
||||
|
Reference in New Issue
Block a user