mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
rewrite expression (equivalently) at request of Paul Eggert
This commit is contained in:
1 parent
bda1bae801
commit
1206a834dd
1 file changed
+1
-1
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user