From acdd2dbaf3ea8958d480ecd7af7d2ede2d47087d Mon Sep 17 00:00:00 2001 From: yugui Date: Wed, 28 Oct 2009 16:12:03 +0000 Subject: merges r24726 from trunk into ruby_1_9_1. -- * vm_eval.c (eval_string_with_cref): fix to check local_table_size. [ruby-dev:39205] [Bug #2024] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@25551 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_eval.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vm_eval.c') diff --git a/vm_eval.c b/vm_eval.c index 447232771..9c3a602af 100644 --- a/vm_eval.c +++ b/vm_eval.c @@ -754,7 +754,7 @@ eval_string_with_cref(VALUE self, VALUE src, VALUE scope, NODE *cref, const char /* save new env */ GetISeqPtr(iseqval, iseq); - if (bind && iseq->local_size > 0) { + if (bind && iseq->local_table_size > 0) { bind->env = rb_vm_make_env_object(th, th->cfp); } -- cgit