1
0
mirror of https://frontier.innolan.net/rainlance/amiga-tz.git synced 2025-12-08 11:22:55 +00:00

overflow work

SCCS-file: localtime.c
SCCS-SID: 7.96
This commit is contained in:
Arthur David Olson
2005-08-09 09:55:06 -04:00
committed by Paul Eggert
parent 93b1787a4c
commit 46fa7e9817

View File

@ -1616,9 +1616,13 @@ const int do_norm_secs;
if (dir != 0) {
if (t == lo) {
++t;
if (t <= lo)
return WRONG;
++lo;
} else if (t == hi) {
--t;
if (t >= hi)
return WRONG;
--hi;
}
if (lo > hi)