libc/time mktime.c
roland@sourceware.org
roland@sourceware.org
Fri Oct 22 22:24:00 GMT 2004
CVSROOT: /cvs/glibc
Module name: libc
Changes by: roland@sources.redhat.com 2004-10-22 22:24:04
Modified files:
time : mktime.c
Log message:
2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
[BZ #471] Fix imported from gnulib.
* time/mktime.c (leapyear, ydms_tm_diff): Year is of type
long int, not int, to avoid problems when tm_year == INT_MAX
and tm_mon > 12.
(__mktime_intenral): Compute year using long int arithmetic,
not int arithmetic, to avoid problems on hosts where time_t
and long are 64 bits but int is 32.
Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/time/mktime.c.diff?cvsroot=glibc&r1=1.59&r2=1.60
More information about the Glibc-cvs
mailing list