Mercurial > hg > octave-lyh > gnulib-hg
changeset 2047:626ebcce50a3
(get_date): Fix typo in time_t overflow test.
From Michael Stone.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Wed, 22 Dec 1999 11:14:05 +0000 |
parents | 212fb9fdd049 |
children | 75813b83df17 |
files | lib/getdate.y |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/getdate.y +++ b/lib/getdate.y @@ -99,7 +99,7 @@ /* Information passed to and from the parser. */ struct parser_control -{ +{ /* The input string remaining to be parsed. */ const char *input; @@ -1014,7 +1014,7 @@ if (! gmt) return -1; delta = pc.time_zone * 60 + difftm (gmt, &tm); - if ((Start - delta < Start) != (delta < 0)) + if ((Start - delta < Start) != (delta > 0)) return -1; /* time_t overflow */ Start -= delta; }