From cfd1157f1123998bde7b93212bdb111a65b82414 Mon Sep 17 00:00:00 2001 From: ko1 Date: Wed, 2 Dec 2015 08:20:35 +0000 Subject: * iseq.h: introduce ISEQ_ORIGINAL_ISEQ() and ISEQ_ORIGINAL_ISEQ_ALLOC() macro. * compile.c: use them to access original iseq buffer. * iseq.c: ditto. * vm_core.h: rename iseq field to support this fix. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- iseq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'iseq.c') diff --git a/iseq.c b/iseq.c index 66fd11f3f7..3a539170a3 100644 --- a/iseq.c +++ b/iseq.c @@ -92,7 +92,7 @@ rb_iseq_free(const rb_iseq_t *iseq) ruby_xfree((void *)iseq->body->param.keyword); } compile_data_free(ISEQ_COMPILE_DATA(iseq)); - ruby_xfree(iseq->variable_body->iseq); + ruby_xfree(iseq->variable_body->iseq_); ruby_xfree(iseq->variable_body); ruby_xfree(iseq->body); } @@ -157,7 +157,7 @@ iseq_memsize(const rb_iseq_t *iseq) if (variable_body) { size += sizeof(struct rb_iseq_variable_body); - if (variable_body->iseq && body) { + if (variable_body->iseq_ && body) { size += body->iseq_size * sizeof(VALUE); } } -- cgit v1.2.3