From: Ulrich Drepper Date: Tue, 18 Mar 1997 22:19:12 +0000 (+0000) Subject: (__offtime): Change type of `yg' to long int. X-Git-Tag: cvs/libc20x-ud-970318~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b44c1e14dbff3eddddcf8322a060c3b3d5851ae6;p=thirdparty%2Fglibc.git (__offtime): Change type of `yg' to long int. --- diff --git a/time/offtime.c b/time/offtime.c index 1469029bc07..f13c8a38ae1 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