1
0
mirror of https://frontier.innolan.net/rainlance/amiga-tz.git synced 2025-12-07 14:32:44 +00:00

bug fix in atcomp

SCCS-file: zic.c
SCCS-SID: 7.66
This commit is contained in:
Arthur David Olson
1996-05-02 13:00:04 -04:00
committed by Paul Eggert
parent 9c20d43229
commit 01fe5cd1ac

11
zic.c
View File

@ -1324,14 +1324,11 @@ atcomp(avp, bvp)
void * avp;
void * bvp;
{
time_t diff;
diff = ((struct attype *) avp)->at - ((struct attype *) bvp)->at;
if (diff > 0)
return 1;
if (diff < 0)
if (((struct attype *) avp)->at < ((struct attype *) bvp)->at)
return -1;
return 0;
else if (((struct attype *) avp)->at > ((struct attype *) bvp)->at)
return 1;
else return 0;
}
static void