diff --git a/ChangeLog b/ChangeLog index ba029647dc..70305a3820 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Tue Sep 1 19:56:28 2009 Koichi Sasada + + * vm_eval.c (eval_string_with_cref): fix to check local_table_size. + [ruby-dev:39205] [Bug #2024] + Mon Aug 31 16:20:41 2009 Yuki Sonoda (Yugui) * class.c (make_singleton_class): variable name changed. diff --git a/vm_eval.c b/vm_eval.c index fa802ad04e..97466a0cd2 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); }