]> granicus.if.org Git - php/commitdiff
- Fixed bug with leap year checking.
authorDerick Rethans <derick@php.net>
Mon, 28 Jun 2004 14:33:57 +0000 (14:33 +0000)
committerDerick Rethans <derick@php.net>
Mon, 28 Jun 2004 14:33:57 +0000 (14:33 +0000)
ext/standard/datetime.c

index d033612499449a020043ebc0614889911a6f1322..4e455a86a09c316bb886206d078f187e06774678 100644 (file)
@@ -64,7 +64,7 @@ static int phpday_tab[2][12] = {
        {31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}
 };
 
-#define isleap(year) (((year % 4) == 0 && (year % 100) != 0) || (year % 400)==0)
+#define isleap(year) ((((year) % 4) == 0 && ((year) % 100) != 0) || ((year) % 400)==0)
 #define YEAR_BASE 1900
 
 /* {{{ proto int time(void)