From 38a94739fcd69f371a70a4ee150f24eeb325501c Mon Sep 17 00:00:00 2001 From: ko1 Date: Tue, 1 Sep 2009 10:58:31 +0000 Subject: * 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/trunk@24726 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 fa802ad04..97466a0cd 100644 --- a/vm_eval.c +++ b/vm_eval.c @@ -833,7 +833,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