projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
08dd7d3
)
(leapyear): Arg is long int, not int.
author
Paul Eggert
<eggert@cs.ucla.edu>
Fri, 22 Oct 2004 20:19:01 +0000
(20:19 +0000)
committer
Paul Eggert
<eggert@cs.ucla.edu>
Fri, 22 Oct 2004 20:19:01 +0000
(20:19 +0000)
lib/mktime.c
patch
|
blob
|
history
diff --git
a/lib/mktime.c
b/lib/mktime.c
index ce3de583938b32288f2dfa778f0abdf4d656fb4a..a017a51c8d39607cb51df7f5b09542d2c2decacf 100644
(file)
--- a/
lib/mktime.c
+++ b/
lib/mktime.c
@@
-77,7
+77,7
@@
verify (base_year_is_a_multiple_of_100, TM_YEAR_BASE % 100 == 0);
/* 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. */