summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-08-24 09:15:58 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-08-24 09:15:58 +0000
commitb29a029768ab68a289536a43002550689f617239 (patch)
tree850dd515a4acdcfff753deea5e62345bb660fdce /include
parentb903ab940ca90188899a15ea0a04082aff795e10 (diff)
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')
-rw-r--r--include/ruby/ruby.h2
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) {