mirror of
https://github.com/HowardHinnant/date.git
synced 2024-12-25 23:40:53 +08:00
Set not_a_century to something outside the domain of centuries for a year.
This commit is contained in:
parent
cc4685a21e
commit
0ef86f1ced
@ -6590,7 +6590,7 @@ from_stream(std::basic_istream<CharT, Traits>& is, const CharT* fmt,
|
||||
|
||||
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_century = numeric_limits<int>::min();
|
||||
CONSTDATA int not_a_month = 0;
|
||||
CONSTDATA int not_a_day = 0;
|
||||
CONSTDATA int not_a_hour = numeric_limits<int>::min();
|
||||
|
Loading…
x
Reference in New Issue
Block a user