1
0
mirror of https://frontier.innolan.net/rainlance/amiga-tz.git synced 2026-05-06 18:10:40 +00:00

avoid sizeof type

SCCS-file: difftime.c
SCCS-SID: 7.9
This commit is contained in:
Arthur David Olson
2001-11-20 17:10:31 -05:00
committed by Paul Eggert
parent c62332c1d0
commit 7cc657de54

View File

@@ -32,10 +32,16 @@ const time_t time0;
time_t delta;
time_t hibit;
if (sizeof time_t < sizeof double)
return (double) time1 - (double) time0;
if (sizeof time_t < sizeof long_double)
return (long_double) time1 - (long_double) time0;
{
time_t tt;
double d;
long_double ld;
if (sizeof tt < sizeof d)
return (double) time1 - (double) time0;
if (sizeof tt < sizeof ld)
return (long_double) time1 - (long_double) time0;
}
if (time1 < time0)
return -difftime(time0, time1);
/*