Skip to content

Commit

Permalink
write positive infinity without sign
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldreik committed Jun 14, 2019
1 parent fd72b9a commit 380671a
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 @@ -588,7 +588,7 @@ struct chrono_formatter {
}

void write_nan() { std::copy_n("nan", 3, out); }
void write_pinf() { std::copy_n("+inf", 4, out); }
void write_pinf() { std::copy_n("inf", 3, out); }
void write_ninf() { std::copy_n("-inf", 4, out); }

void format_localized(const tm& time, const char* format) {
Expand Down

0 comments on commit 380671a

Please sign in to comment.