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

ruby-changes:49807

From: kazu <ko1@a...>
Date: Thu, 18 Jan 2018 21:54:28 +0900 (JST)
Subject: [ruby-changes:49807] kazu:r61935 (trunk): Use already casted variable

kazu	2018-01-18 21:54:24 +0900 (Thu, 18 Jan 2018)

  New Revision: 61935

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

  Log:
    Use already casted variable
    
    r61883

  Modified files:
    trunk/iseq.c
Index: iseq.c
===================================================================
--- iseq.c	(revision 61934)
+++ iseq.c	(revision 61935)
@@ -1542,7 +1542,7 @@ rb_insn_operand_intern(const rb_iseq_t * https://github.com/ruby/ruby/blob/trunk/iseq.c#L1542
 	    if (deftype == DEFINED_REF) {
 		ret = rb_fstring_cstr("ref"); break;
 	    }
-	    ret = rb_iseq_defined_string((enum defined_type)op);
+	    ret = rb_iseq_defined_string(deftype);
 	    if (ret) break;
 	}
 	else if (insn == BIN(branchiftype) && op_no == 0) {

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

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