Skip to content

Commit

Permalink
fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
js324 committed Jan 16, 2024
1 parent 8227a2f commit 7e96e39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/fmt/chrono.h
Original file line number Diff line number Diff line change
Expand Up @@ -1159,7 +1159,7 @@ void write_fractional_seconds(OutputIt& out, Duration d, int precision = -1) {
int num_truncated_digits = num_digits - remaining;
n /= to_unsigned(detail::pow10(to_unsigned(num_truncated_digits)-1)); //002999
const int old_num_digits = detail::count_digits(n);
int roundingDigit = n % 10;
auto roundingDigit = n % 10;
n /= 10;
if (roundingDigit > 5 || (roundingDigit == 5 && n % 10 % 2 != 0)) {
n += 1;
Expand Down

0 comments on commit 7e96e39

Please sign in to comment.