[前][次][番号順一覧][スレッド一覧]

ruby-changes:24768

From: nobu <ko1@a...>
Date: Fri, 24 Aug 2012 18:16:20 +0900 (JST)
Subject: [ruby-changes:24768] nobu:r36819 (trunk): ruby.h: clear expression

nobu	2012-08-24 18:15:58 +0900 (Fri, 24 Aug 2012)

  New Revision: 36819

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=36819

  Log:
    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.

  Modified files:
    trunk/include/ruby/ruby.h

Index: include/ruby/ruby.h
===================================================================
--- include/ruby/ruby.h	(revision 36818)
+++ include/ruby/ruby.h	(revision 36819)
@@ -773,7 +773,7 @@
 
     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) {

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]