[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-gnulib] mktime.c int -> long int fix
From: |
Paul Eggert |
Subject: |
[Bug-gnulib] mktime.c int -> long int fix |
Date: |
Fri, 22 Oct 2004 13:18:29 -0700 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) |
I installed this obvious fix relevant to hosts with 64-bit time_t and
32-bit int:
2004-10-22 Paul Eggert <address@hidden>
* mktime.c (leapyear): Arg is long int, not int.
--- mktime.c.~1.42.~ 2004-01-21 14:10:43 -0800
+++ mktime.c 2004-10-22 13:15:08 -0700
@@ -77,7 +77,7 @@ verify (base_year_is_a_multiple_of_100,
/* Return 1 if YEAR + TM_YEAR_BASE is a leap year. */
static inline int
-leapyear (int year)
+leapyear (long int year)
{
/* Don't add YEAR to TM_YEAR_BASE, as that might overflow.
Also, work even if YEAR is negative. */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug-gnulib] mktime.c int -> long int fix,
Paul Eggert <=