1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

ruby.h: clear expression

* include/ruby/ruby.h (rb_float_new): suppress bitwise-op-parentheses
  warning, and zero-expand to VALUE before bit negation to get rid of
  confusion.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36819 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2012-08-24 09:15:58 +00:00
parent b903ab940c
commit b29a029768

View file

@ -773,7 +773,7 @@ rb_float_new(double d)
if (t.v != 0x3000000000000000 /* 1.72723e-77 */ &&
!((bits-3) & ~0x01)) {
return (RUBY_BIT_ROTL(t.v, 3) & ~0x01 | 0x02);
return (RUBY_BIT_ROTL(t.v, 3) & ~(VALUE)0x01) | 0x02;
}
else {
if (t.v == (VALUE)0) {