diff options
Diffstat (limited to 'newlib/libc')
-rw-r--r-- | newlib/libc/time/mktm_r.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/time/mktm_r.c b/newlib/libc/time/mktm_r.c index 4d4b4fab0..9b9b411a5 100644 --- a/newlib/libc/time/mktm_r.c +++ b/newlib/libc/time/mktm_r.c @@ -182,7 +182,7 @@ _DEFUN (_mktm_r, (tim_p, res, is_gmtime), { res->tm_mon = 11; res->tm_year -= 1; - res->tm_yday = 365 + isleap(res->tm_year); + res->tm_yday = 364 + isleap(res->tm_year); } res->tm_mday = ip[res->tm_mon]; } |