1
0
mirror of https://frontier.innolan.net/rainlance/amiga-tz.git synced 2026-05-06 21:17:12 +00:00

Eggert mods

SCCS-file: difftime.c
SCCS-SID: 7.16
This commit is contained in:
Arthur David Olson
2004-11-01 13:33:49 -05:00
committed by Paul Eggert
parent 7c8093ffb8
commit 5eae13f57b

View File

@@ -47,7 +47,7 @@ const time_t time0;
** Handle cases where both time1 and time0 have the same sign
** (meaning that their difference cannot overflow).
*/
if (time1 >= 0 && time0 >= 0 || time1 < 0 && time0 < 0)
if ((time1 < 0) == (time0 < 0))
return time1 - time0;
/*
** time1 and time0 have opposite signs.