diff options
Diffstat (limited to 'time/offtime.c')
-rw-r--r-- | time/offtime.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/time/offtime.c b/time/offtime.c index 1469029..f13c8a3 100644 --- a/time/offtime.c +++ b/time/offtime.c @@ -64,7 +64,7 @@ __offtime (t, offset, tp) while (days < 0 || days >= (__isleap (y) ? 366 : 365)) { /* Guess a corrected year, assuming 365 days per year. */ - int yg = y + days / 365 - (days % 365 < 0); + long int yg = y + days / 365 - (days % 365 < 0); /* Adjust DAYS and Y to match the guessed year. */ days -= ((yg - y) * 365 |