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

ruby-changes:19778

From: naruse <ko1@a...>
Date: Mon, 30 May 2011 16:28:37 +0900 (JST)
Subject: [ruby-changes:19778] naruse:r31823 (trunk): Fix mixed declarations in r31822.

naruse	2011-05-30 16:28:30 +0900 (Mon, 30 May 2011)

  New Revision: 31823

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

  Log:
    Fix mixed declarations in r31822.

  Modified files:
    trunk/insns.def

Index: insns.def
===================================================================
--- insns.def	(revision 31822)
+++ insns.def	(revision 31823)
@@ -1461,8 +1461,9 @@
 	    val = recv;
 	}
 	else {
+	    volatile long c;
 	    b = FIX2LONG(obj);
-	    volatile long c = a * b;
+	    c = a * b;
 
 	    if (FIXABLE(c) && c / a == b) {
 		val = LONG2FIX(c);

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

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