mirror of
https://frontier.innolan.net/rainlance/amiga-tz.git
synced 2026-09-23 10:13:01 +00:00
account for possibility of two positives
SCCS-file: zdump.c SCCS-SID: 7.46
This commit is contained in:
committed by
Paul Eggert
parent
f594aead36
commit
40bf459d45
@@ -414,6 +414,10 @@ register const struct tm * timeptr;
|
||||
#define DIVISOR 10
|
||||
lead = timeptr->tm_year / DIVISOR + TM_YEAR_BASE / DIVISOR;
|
||||
trail = timeptr->tm_year % DIVISOR + TM_YEAR_BASE % DIVISOR;
|
||||
if (trail > DIVISOR) {
|
||||
trail -= DIVISOR;
|
||||
++lead;
|
||||
}
|
||||
while (trail < 0) {
|
||||
trail += DIVISOR;
|
||||
--lead;
|
||||
|
||||
Reference in New Issue
Block a user