summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--ext/date/date_core.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index e9e4e19d2b..5cf3488807 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Tue Mar 12 17:02:53 2013 TAKANO Mitsuhiro <tak@no32.tk>
+
+ * date_core.c: clearly specify operator precedence.
+
Tue Mar 12 17:00:45 2013 TAKANO Mitsuhiro <tak@no32.tk>
* insns.def: fix condition.
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