mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-30 10:47:35 +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 {
|
} else {
|
||||||
*out++ = static_cast<Char>('+');
|
*out++ = static_cast<Char>('+');
|
||||||
}
|
}
|
||||||
unsigned uexp = to_unsigned(exp);
|
auto uexp = static_cast<uint32_t>(exp);
|
||||||
if (is_constant_evaluated()) {
|
if (is_constant_evaluated()) {
|
||||||
if (uexp < 10) *out++ = '0';
|
if (uexp < 10) *out++ = '0';
|
||||||
return format_decimal<Char>(out, uexp, count_digits(uexp));
|
return format_decimal<Char>(out, uexp, count_digits(uexp));
|
||||||
|
Reference in New Issue
Block a user