ruby-changes:12281
From: nobu <ko1@a...>
Date: Tue, 7 Jul 2009 10:12:53 +0900 (JST)
Subject: [ruby-changes:12281] Ruby:r23974 (trunk): * iseq.c: provisional type fixes.
nobu 2009-07-07 10:12:17 +0900 (Tue, 07 Jul 2009) New Revision: 23974 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=23974 Log: * iseq.c: provisional type fixes. Modified files: trunk/iseq.c Index: iseq.c =================================================================== --- iseq.c (revision 23973) +++ iseq.c (revision 23974) @@ -163,7 +163,7 @@ 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 @@ } /* 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 @@ const char *name, const char *filename) { - int i; + unsigned long i; VALUE iseqval = iseq_alloc(rb_cISeq); rb_iseq_t *iseq; GetISeqPtr(iseqval, iseq); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/