This is the mail archive of the
glibc-cvs@sources.redhat.com
mailing list for the glibc project.
libc/time mktime.c
- From: roland at sourceware dot org
- To: glibc-cvs at sources dot redhat dot com
- Date: 22 Oct 2004 22:24:04 -0000
- Subject: libc/time mktime.c
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