]> Dogcows Code - chaz/tar/commitdiff
(get_date):
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 22 Dec 1999 18:10:37 +0000 (18:10 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 22 Dec 1999 18:10:37 +0000 (18:10 +0000)
Fix typo when checking for time_t overflow in time zone calculations.

lib/getdate.y

index 658da69fcda14200134889cea2bc5619f3be0625..eb1fe7bef7ebc854208a95ec0a6598a2e6d14484 100644 (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;
     }
This page took 0.023218 seconds and 4 git commands to generate.