summaryrefslogtreecommitdiff
path: root/iseq.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-10-12 14:35:40 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-10-12 14:35:40 +0000
commit17c48bebf87828abeb5be91ed8ba0a2b72bc5479 (patch)
treefc36e1142112ab169e7da74c8e1f0e6b29bdea7b /iseq.c
parent3c24bea4b5bfa33b3dddde688638cc2892f9512c (diff)
* 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 'iseq.c')
-rw-r--r--iseq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/iseq.c b/iseq.c
index d7c8fb3f03..2bdac2b199 100644
--- a/iseq.c
+++ b/iseq.c
@@ -512,7 +512,7 @@ iseq_load(VALUE self, VALUE data, VALUE parent, VALUE opt)
make_compile_option(&option, opt);
prepare_iseq_build(iseq, name, filename, filepath, line_no,
- parent, iseq_type, 0, &option);
+ parent, (VALUE)iseq_type, 0, &option);
rb_iseq_build_from_ary(iseq, locals, args, exception, body);
@@ -1307,7 +1307,7 @@ iseq_data_to_ary(rb_iseq_t *iseq)
VALUE label;
if (st_lookup(labels_table, pos, &label)) {
- rb_ary_push(body, label);
+ rb_ary_push(body, (VALUE)label);
}
if (iseq->insn_info_table[i].line_no != line) {