Mercurial > hg > octave-lojdl > gnulib-hg
changeset 805:d0f53b0fb6e0
(Convert): Don't reject all dates in 2038.
Some fit in 31 bits.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Tue, 10 Dec 1996 04:34:18 +0000 |
parents | de3dd213676c |
children | 3063903767e8 |
files | lib/getdate.y |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/getdate.y +++ b/lib/getdate.y @@ -690,7 +690,7 @@ Year += 1900; DaysInMonth[1] = Year % 4 == 0 && (Year % 100 != 0 || Year % 400 == 0) ? 29 : 28; - if (Year < EPOCH || Year >= DOOMSDAY + if (Year < EPOCH || Year > DOOMSDAY || Month < 1 || Month > 12 /* Lint fluff: "conversion from long may lose accuracy" */ || Day < 1 || Day > DaysInMonth[(int)--Month])