mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* date_core.c: clearly specify operator precedence.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8f73480c3d
commit
976a3041ef
2 changed files with 5 additions and 1 deletions
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue