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

ruby-changes:17453

From: nobu <ko1@a...>
Date: Tue, 12 Oct 2010 22:42:42 +0900 (JST)
Subject: [ruby-changes:17453] Ruby:r29458 (trunk): * compile.c (iseq_compile_each): fix truncating cast.

nobu	2010-10-12 22:41:12 +0900 (Tue, 12 Oct 2010)

  New Revision: 29458

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

  Log:
    * compile.c (iseq_compile_each): fix truncating cast.

  Modified files:
    trunk/ChangeLog
    trunk/compile.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 29457)
+++ ChangeLog	(revision 29458)
@@ -1,5 +1,7 @@
-Tue Oct 12 22:18:15 2010  Nobuyoshi Nakada  <nobu@r...>
+Tue Oct 12 22:41:07 2010  Nobuyoshi Nakada  <nobu@r...>
 
+	* compile.c (iseq_compile_each): fix truncating cast.
+
 	* cont.c (fiber_setcontext): missing variable definition.
 
 Tue Oct 12 19:25:13 2010  NARUSE, Yui  <naruse@r...>
Index: compile.c
===================================================================
--- compile.c	(revision 29457)
+++ compile.c	(revision 29458)
@@ -3700,7 +3700,7 @@
 	    ADD_INSN(ret, nd_line(node), dup);
 	}
 	ADD_INSN1(ret, nd_line(node), setglobal,
-		  (((long)node->nd_entry) | 1));
+		  ((VALUE)node->nd_entry | 1));
 	break;
       }
       case NODE_IASGN:
@@ -4338,7 +4338,7 @@
       }
       case NODE_GVAR:{
 	ADD_INSN1(ret, nd_line(node), getglobal,
-		  (((long)node->nd_entry) | 1));
+		  ((VALUE)node->nd_entry | 1));
 	if (poped) {
 	    ADD_INSN(ret, nd_line(node), pop);
 	}

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

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