mirror of
https://github.com/HowardHinnant/date.git
synced 2024-12-26 07:53:16 +08:00
Correct the value for not_a_year
This commit is contained in:
parent
fe2f9c7eac
commit
6952fb50a6
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user