From 34b6d256409cf737b57f871069310ca9cf18b3ab Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 8 Jun 2014 14:46:43 +0000 Subject: [PATCH] compile.c: use enum * compile.c (new_insn_body): use enum instead of bare int. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46383 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- compile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compile.c b/compile.c index 89dc4e445d..a04ddd02d0 100644 --- a/compile.c +++ b/compile.c @@ -331,7 +331,7 @@ static void dump_disasm_list(LINK_ELEMENT *elem); static int insn_data_length(INSN *iobj); static int calc_sp_depth(int depth, INSN *iobj); -static INSN *new_insn_body(rb_iseq_t *iseq, int line_no, int insn_id, int argc, ...); +static INSN *new_insn_body(rb_iseq_t *iseq, int line_no, enum ruby_vminsn_type insn_id, int argc, ...); static LABEL *new_label_body(rb_iseq_t *iseq, long line); static ADJUST *new_adjust_body(rb_iseq_t *iseq, LABEL *label, int line); @@ -930,7 +930,7 @@ new_insn_core(rb_iseq_t *iseq, int line_no, } static INSN * -new_insn_body(rb_iseq_t *iseq, int line_no, int insn_id, int argc, ...) +new_insn_body(rb_iseq_t *iseq, int line_no, enum ruby_vminsn_type insn_id, int argc, ...) { VALUE *operands = 0; va_list argv;