diff options
Diffstat (limited to 'ext/date')
-rw-r--r-- | ext/date/date_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/date/date_core.c b/ext/date/date_core.c index f898c46aa2..323a4550b2 100644 --- a/ext/date/date_core.c +++ b/ext/date/date_core.c @@ -679,7 +679,7 @@ c_julian_leap_p(int y) inline static int c_gregorian_leap_p(int y) { - return MOD(y, 4) == 0 && y % 100 != 0 || MOD(y, 400) == 0; + return (MOD(y, 4) == 0 && y % 100 != 0) || MOD(y, 400) == 0; } static int |