From 905c1579174296a9c876a20e93b1fe540ed7adbe Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 26 Feb 2009 04:23:21 +0000 Subject: [PATCH] * iseq.c (cdhash_each): resurrects internal literals. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ iseq.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 7a370f393d..01934c7416 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Thu Feb 26 13:23:20 2009 Nobuyoshi Nakada + + * iseq.c (cdhash_each): resurrects internal literals. + Thu Feb 26 10:56:48 2009 NAKAMURA Usaku * include/ruby/win32.h (rb_w32_wopen): prototype forgotten. diff --git a/iseq.c b/iseq.c index 0385e214b1..b9949643be 100644 --- a/iseq.c +++ b/iseq.c @@ -1018,7 +1018,7 @@ exception_type2symbol(VALUE type) 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; }