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:
committed by
Paul Eggert
parent
9c20d43229
commit
01fe5cd1ac
11
zic.c
11
zic.c
@ -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
|
||||
|
||||
Reference in New Issue
Block a user