summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1999-12-22 11:14:05 +0000
committerJim Meyering <jim@meyering.net>1999-12-22 11:14:05 +0000
commitaa077869523691756890e576e9775e2410c4ad1a (patch)
tree9573768ef0d198bd1162fd944dbfb5a1aa4ffb22 /lib
parent771ec09cd4ae0279c1586b1bddb384d6f65a0eb5 (diff)
downloadcoreutils-aa077869523691756890e576e9775e2410c4ad1a.tar.xz
(get_date): Fix typo in time_t overflow test.
From Michael Stone.
Diffstat (limited to 'lib')
-rw-r--r--lib/getdate.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/getdate.y b/lib/getdate.y
index 658da69fc..4b24cdc92 100644
--- a/lib/getdate.y
+++ b/lib/getdate.y
@@ -99,7 +99,7 @@ enum { MERam, MERpm, MER24 };
/* Information passed to and from the parser. */
struct parser_control
-{
+{
/* The input string remaining to be parsed. */
const char *input;
@@ -1014,7 +1014,7 @@ get_date (const char *p, const time_t *now)
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;
}