Skip to content

Commit

Permalink
Correct the value for not_a_year
Browse files Browse the repository at this point in the history
  • Loading branch information
HowardHinnant committed Jul 8, 2020
1 parent fe2f9c7 commit 6952fb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/date/date.h
Original file line number Diff line number Diff line change
Expand Up @@ -6324,7 +6324,7 @@ from_stream(std::basic_istream<CharT, Traits>& is, const CharT* fmt,
auto modified = CharT{};
auto width = -1;

CONSTDATA int not_a_year = numeric_limits<int>::min();
CONSTDATA int not_a_year = numeric_limits<short>::min();
CONSTDATA int not_a_2digit_year = 100;
CONSTDATA int not_a_century = not_a_year / 100;
CONSTDATA int not_a_month = 0;
Expand Down

0 comments on commit 6952fb5

Please sign in to comment.