Skip to content

Commit

Permalink
Fix ambiguous overload
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaut committed Aug 9, 2024
1 parent 0ce49ae commit 9831431
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 @@ -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));
Expand Down

0 comments on commit 9831431

Please sign in to comment.