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

ruby-changes:11047

From: nobu <ko1@a...>
Date: Thu, 26 Feb 2009 13:23:31 +0900 (JST)
Subject: [ruby-changes:11047] Ruby:r22640 (trunk): * iseq.c (cdhash_each): resurrects internal literals.

nobu	2009-02-26 13:23:21 +0900 (Thu, 26 Feb 2009)

  New Revision: 22640

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

  Log:
    * iseq.c (cdhash_each): resurrects internal literals.

  Modified files:
    trunk/ChangeLog
    trunk/iseq.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 22639)
+++ ChangeLog	(revision 22640)
@@ -1,3 +1,7 @@
+Thu Feb 26 13:23:20 2009  Nobuyoshi Nakada  <nobu@r...>
+
+	* iseq.c (cdhash_each): resurrects internal literals.
+
 Thu Feb 26 10:56:48 2009  NAKAMURA Usaku  <usa@r...>
 
 	* include/ruby/win32.h (rb_w32_wopen): prototype forgotten.
Index: iseq.c
===================================================================
--- iseq.c	(revision 22639)
+++ iseq.c	(revision 22640)
@@ -1018,7 +1018,7 @@
 static int
 cdhash_each(VALUE key, VALUE value, VALUE ary)
 {
-    rb_ary_push(ary, key);
+    rb_ary_push(ary, obj_resurrect(key));
     rb_ary_push(ary, value);
     return ST_CONTINUE;
 }

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

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