From 030d37152aa8e50653c4591e42ba7efe80fd1fc6 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Fri, 22 Oct 2004 22:24:08 +0000 Subject: [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. --- ChangeLog | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 998a28b956..2059592395 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,13 @@ 2004-10-22 Paul Eggert + [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. + [BZ #468] Import a fix from gnulib. * time/mktime.c [! DEBUG]: Do not include . It's needed only if DEBUG is nonzero. -- cgit v1.2.3