From: Paul Eggert Date: Wed, 22 Dec 1999 18:10:37 +0000 (+0000) Subject: (get_date): X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=abdde50e1b20a7cf1199d14a29d09b1dc5423380;p=chaz%2Ftar (get_date): Fix typo when checking for time_t overflow in time zone calculations. --- diff --git a/lib/getdate.y b/lib/getdate.y index 658da69..eb1fe7b 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; }