From abdde50e1b20a7cf1199d14a29d09b1dc5423380 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Wed, 22 Dec 1999 18:10:37 +0000 Subject: [PATCH] (get_date): Fix typo when checking for time_t overflow in time zone calculations. --- lib/getdate.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.44.0