1
0
mirror of https://frontier.innolan.net/rainlance/amiga-tz.git synced 2025-11-23 02:32:54 +00:00

account for possibility of two positives

SCCS-file: strftime.c
SCCS-SID: 7.72
This commit is contained in:
Arthur David Olson
2004-10-14 18:09:03 -04:00
committed by Paul Eggert
parent e462c3544e
commit f594aead36

View File

@ -620,6 +620,10 @@ const char * const ptlim;
#define DIVISOR 100
lead = a / DIVISOR + b / DIVISOR;
trail = a % DIVISOR + b % DIVISOR;
if (trail > DIVISOR) {
trail -= DIVISOR;
++lead;
}
while (trail < 0) {
trail += DIVISOR;
--lead;