(__offtime): Change type of `yg' to long int.

This commit is contained in:
Ulrich Drepper 1997-03-18 22:19:12 +00:00
parent 18d41844f1
commit b44c1e14db

View File

@ -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