mirror of
git://sourceware.org/git/glibc.git
synced 2025-04-06 14:10:30 +08:00
(__offtime): Change type of `yg' to long int.
This commit is contained in:
parent
18d41844f1
commit
b44c1e14db
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user