[前][次][番号順一覧][スレッド一覧]

ruby-changes:35431

From: nobu <ko1@a...>
Date: Wed, 10 Sep 2014 17:05:37 +0900 (JST)
Subject: [ruby-changes:35431] nobu:r47513 (trunk): compile.c: remove useless cast

nobu	2014-09-10 17:05:19 +0900 (Wed, 10 Sep 2014)

  New Revision: 47513

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=47513

  Log:
    compile.c: remove useless cast
    
    * compile.c (rb_iseq_original_iseq): remove useless cast to fix
      compile error.

  Modified files:
    trunk/compile.c
Index: compile.c
===================================================================
--- compile.c	(revision 47512)
+++ compile.c	(revision 47513)
@@ -609,7 +609,7 @@ rb_iseq_original_iseq(rb_iseq_t *iseq) / https://github.com/ruby/ruby/blob/trunk/compile.c#L609
 
 	for (i = 0; i < iseq->iseq_size; /* */ ) {
 	    const void *addr = (const void *)iseq->iseq[i];
-	    int insn = (VALUE)rb_vm_addr2insn(addr);
+	    int insn = rb_vm_addr2insn(addr);
 
 	    iseq->iseq[i] = insn;
 	    i += insn_len(insn);

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]