diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-08-24 09:15:58 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-08-24 09:15:58 +0000 |
commit | b29a029768ab68a289536a43002550689f617239 (patch) | |
tree | 850dd515a4acdcfff753deea5e62345bb660fdce /include/ruby | |
parent | b903ab940ca90188899a15ea0a04082aff795e10 (diff) | |
download | ruby-b29a029768ab68a289536a43002550689f617239.tar.gz |
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
Diffstat (limited to 'include/ruby')
-rw-r--r-- | include/ruby/ruby.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h index b0267600cb..3905b3294a 100644 --- a/include/ruby/ruby.h +++ b/include/ruby/ruby.h @@ -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) { |