From 32820fb1a103788aecc3d3a2c4833cff36147ea1 Mon Sep 17 00:00:00 2001 From: mame Date: Sun, 25 May 2008 08:52:57 +0000 Subject: * compile.c (iseq_build_body): remove side effect from VM::InstructionSequence.load. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16587 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ compile.c | 1 + 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index a49c233f8..230318541 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sun May 25 17:52:25 2008 Yusuke Endoh + + * compile.c (iseq_build_body): remove side effect from + VM::InstructionSequence.load. + Sun May 25 04:30:45 2008 Yusuke Endoh * test/ruby/test_modules.rb (remove_json_mixins): change judgment diff --git a/compile.c b/compile.c index 03b433d57..cc068b112 100644 --- a/compile.c +++ b/compile.c @@ -4955,6 +4955,7 @@ iseq_build_body(rb_iseq_t *iseq, LINK_ANCHOR *anchor, { int i; op = rb_convert_type(op, T_ARRAY, "Array", "to_ary"); + op = rb_ary_dup(op); for (i=0; i