From f6003894b91987f309cfd0164561db86d5eaa82c Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 31 Oct 2010 13:11:02 +0000 Subject: * compile.c (new_child_iseq): adjust argument types. * iseq.c (prepare_iseq_build, rb_iseq_new), (rb_iseq_new_with_bopt_and_opt, rb_iseq_new_with_opt), (rb_iseq_new_with_bopt): ditto. * compile.c (iseq_set_exception_table): suppress warnings. * insns.def (putspecialobject, defined): ditto. * iseq.c (iseq_load): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29651 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- compile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'compile.c') diff --git a/compile.c b/compile.c index c852b2c234..971020d535 100644 --- a/compile.c +++ b/compile.c @@ -910,7 +910,7 @@ new_insn_send(rb_iseq_t *iseq, int line_no, static VALUE new_child_iseq(rb_iseq_t *iseq, NODE *node, - VALUE name, VALUE parent, VALUE type, int line_no) + VALUE name, VALUE parent, enum iseq_type type, int line_no) { VALUE ret; @@ -1559,7 +1559,7 @@ iseq_set_exception_table(rb_iseq_t *iseq) for (i = 0; i < tlen; i++) { ptr = RARRAY_PTR(tptr[i]); entry = &iseq->catch_table[i]; - entry->type = ptr[0] & 0xffff; + entry->type = (enum catch_type)(ptr[0] & 0xffff); entry->start = label_get_position((LABEL *)(ptr[1] & ~1)); entry->end = label_get_position((LABEL *)(ptr[2] & ~1)); entry->iseq = ptr[3]; -- cgit v1.2.3