(get_date):

Fix typo when checking for time_t overflow in time zone calculations.
This commit is contained in:
Paul Eggert
1999-12-22 18:10:37 +00:00
parent e844ee7e6c
commit abdde50e1b

View File

@@ -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;
}