From 976a3041ef38711b84c6a35db25f189d31903e38 Mon Sep 17 00:00:00 2001 From: takano32 Date: Tue, 12 Mar 2013 08:05:16 +0000 Subject: * date_core.c: clearly specify operator precedence. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/date/date_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/date/date_core.c') 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 -- cgit v1.2.3