summaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-10-31 13:11:02 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-10-31 13:11:02 +0000
commitf6003894b91987f309cfd0164561db86d5eaa82c (patch)
treea607e11c70085ad8b6301a0f3a1084db9c42e8d6 /compile.c
parentfa98c5752d1f6624a7cdf272606a06fb109ea4a9 (diff)
downloadruby-f6003894b91987f309cfd0164561db86d5eaa82c.tar.gz
* 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
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c4
1 files changed, 2 insertions, 2 deletions
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];