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

ruby-changes:40492

From: nobu <ko1@a...>
Date: Sat, 14 Nov 2015 18:03:36 +0900 (JST)
Subject: [ruby-changes:40492] nobu:r52573 (trunk): compile.c: fix variable

nobu	2015-11-14 18:03:08 +0900 (Sat, 14 Nov 2015)

  New Revision: 52573

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

  Log:
    compile.c: fix variable
    
    * compile.c (iseq_peephole_optimize): use proper variable, without
      cast.

  Modified files:
    trunk/compile.c
Index: compile.c
===================================================================
--- compile.c	(revision 52572)
+++ compile.c	(revision 52573)
@@ -2057,7 +2057,7 @@ iseq_peephole_optimize(rb_iseq_t *iseq, https://github.com/ruby/ruby/blob/trunk/compile.c#L2057
 	 *  send ..., ... | VM_CALL_TAILCALL, ...
 	 *  leave # unreachable
 	 */
-	INSN *piobj = (INSN *)get_prev_insn((INSN *)list);
+	INSN *piobj = (INSN *)get_prev_insn(iobj);
 	enum ruby_vminsn_type previ = piobj->insn_id;
 
 	if (previ == BIN(send) || previ == BIN(opt_send_without_block) || previ == BIN(invokesuper)) {

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

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