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:
committed by
Paul Eggert
parent
e462c3544e
commit
f594aead36
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user