diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-04-20 06:01:28 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-04-20 06:01:28 +0000 |
commit | 4a31927d235af622f5f13e0364b70a1c49fe269c (patch) | |
tree | 7371b472e166e28be02da5b93ffc29c4ecfe3699 /compile.c | |
parent | 39c2bef13b5208314e1b134c2a8f51ddeb7a77fc (diff) | |
download | ruby-4a31927d235af622f5f13e0364b70a1c49fe269c.tar.gz ruby-4a31927d235af622f5f13e0364b70a1c49fe269c.tar.xz ruby-4a31927d235af622f5f13e0364b70a1c49fe269c.zip |
* vm_core.h (struct iseq_compile_data): moved label_no from
new_label_body().
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'compile.c')
-rw-r--r-- | compile.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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; |