diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-10-12 14:35:40 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-10-12 14:35:40 +0000 |
commit | 17c48bebf87828abeb5be91ed8ba0a2b72bc5479 (patch) | |
tree | fc36e1142112ab169e7da74c8e1f0e6b29bdea7b /compile.c | |
parent | 3c24bea4b5bfa33b3dddde688638cc2892f9512c (diff) | |
download | ruby-17c48bebf87828abeb5be91ed8ba0a2b72bc5479.tar.gz |
* compile.c (iseq_build_body), insns.def (getglobal, setglobal),
iseq.c (iseq_load, iseq_data_to_ary), util.c (valid_filename):
use VALUE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29461 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'compile.c')
-rw-r--r-- | compile.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -5268,7 +5268,7 @@ iseq_build_body(rb_iseq_t *iseq, LINK_ANCHOR *anchor, "unknown instruction: %s", RSTRING_PTR(insn)); } - if (argc != insn_len(insn_id)-1) { + if (argc != insn_len((VALUE)insn_id)-1) { rb_compile_error(RSTRING_PTR(iseq->filename), line_no, "operand size mismatch"); } @@ -5277,7 +5277,7 @@ iseq_build_body(rb_iseq_t *iseq, LINK_ANCHOR *anchor, argv = compile_data_alloc(iseq, sizeof(VALUE) * argc); for (j=0; j<argc; j++) { VALUE op = rb_ary_entry(obj, j+1); - switch (insn_op_type(insn_id, j)) { + switch (insn_op_type((VALUE)insn_id, j)) { case TS_OFFSET: { LABEL *label = register_label(iseq, labels_table, op); argv[j] = (VALUE)label; @@ -5341,7 +5341,7 @@ iseq_build_body(rb_iseq_t *iseq, LINK_ANCHOR *anchor, } break; default: - rb_raise(rb_eSyntaxError, "unknown operand: %c", insn_op_type(insn_id, j)); + rb_raise(rb_eSyntaxError, "unknown operand: %c", insn_op_type((VALUE)insn_id, j)); } } } |