1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* iseq.c: provisional type fixes.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23974 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2009-07-07 01:12:17 +00:00
parent 8c7f7c29b4
commit 729d726e30

6
iseq.c
View file

@ -163,7 +163,7 @@ iseq_alloc(VALUE klass)
static void
set_relation(rb_iseq_t *iseq, const VALUE parent)
{
const int type = iseq->type;
const VALUE type = iseq->type;
rb_thread_t *th = GET_THREAD();
/* set class nest stack */
@ -979,7 +979,7 @@ rb_iseq_disasm(VALUE self)
}
/* show each line */
for (i = 0; i < size;) {
for (i = 0; (size_t)i < size;) {
i += rb_iseq_disasm_insn(str, iseq, i, iseqdat, child);
}
@ -1408,7 +1408,7 @@ rb_iseq_build_for_ruby2cext(
const char *name,
const char *filename)
{
int i;
unsigned long i;
VALUE iseqval = iseq_alloc(rb_cISeq);
rb_iseq_t *iseq;
GetISeqPtr(iseqval, iseq);