From 64a16b9ede4dfc72f8c4b486ebce148f519e60dc Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 20 Apr 2008 06:01:28 +0000 Subject: * vm_core.h (struct iseq_compile_data): moved label_no from new_label_body(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- compile.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'compile.c') diff --git a/compile.c b/compile.c index 0853863feb..dc26a4c1cf 100644 --- a/compile.c +++ b/compile.c @@ -625,12 +625,11 @@ static LABEL * new_label_body(rb_iseq_t *iseq, int line) { LABEL *labelobj = compile_data_alloc_label(iseq); - static int label_no = 0; labelobj->link.type = ISEQ_ELEMENT_LABEL; labelobj->link.next = 0; - labelobj->label_no = label_no++; + labelobj->label_no = iseq->compile_data->label_no++; labelobj->sc_state = 0; labelobj->sp = -1; return labelobj; -- cgit v1.2.3