summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1999-12-22 20:49:19 +0000
committerJim Meyering <jim@meyering.net>1999-12-22 20:49:19 +0000
commit1206a834dd62cee8dabb207b7bc654aa2d052665 (patch)
tree7137370b47a12f22c256acdb2d3f3bad6540887c /lib
parentbda1bae8011959ff97a2964c2254970697a5b037 (diff)
downloadcoreutils-1206a834dd62cee8dabb207b7bc654aa2d052665.tar.xz
rewrite expression (equivalently) at request of Paul Eggert
Diffstat (limited to 'lib')
-rw-r--r--lib/getdate.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/getdate.y b/lib/getdate.y
index 4b24cdc92..a4c840a41 100644
--- a/lib/getdate.y
+++ b/lib/getdate.y
@@ -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 < Start - delta) != (delta < 0))
return -1; /* time_t overflow */
Start -= delta;
}