From b29a029768ab68a289536a43002550689f617239 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 24 Aug 2012 09:15:58 +0000 Subject: [PATCH] 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 --- include/ruby/ruby.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {