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

ruby-changes:52563

From: k0kubun <ko1@a...>
Date: Tue, 18 Sep 2018 22:52:12 +0900 (JST)
Subject: [ruby-changes:52563] k0kubun:r64775 (trunk): vm_insnhelper.c: always use bool-ish value

k0kubun	2018-09-18 22:52:06 +0900 (Tue, 18 Sep 2018)

  New Revision: 64775

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

  Log:
    vm_insnhelper.c: always use bool-ish value
    
    for CC_SET_FASTPATH condition. Just a cosmetic change to unify the
    styling with other lines.

  Modified files:
    trunk/vm_insnhelper.c
Index: vm_insnhelper.c
===================================================================
--- vm_insnhelper.c	(revision 64774)
+++ vm_insnhelper.c	(revision 64775)
@@ -2380,7 +2380,7 @@ vm_call_method_nome(rb_execution_context https://github.com/ruby/ruby/blob/trunk/vm_insnhelper.c#L2380
     }
     else {
 	cc->aux.method_missing_reason = stat;
-        CC_SET_FASTPATH(cc, vm_call_method_missing, 1);
+        CC_SET_FASTPATH(cc, vm_call_method_missing, TRUE);
 	return vm_call_method_missing(ec, cfp, calling, ci, cc);
     }
 }
@@ -2401,7 +2401,7 @@ vm_call_method(rb_execution_context_t *e https://github.com/ruby/ruby/blob/trunk/vm_insnhelper.c#L2401
 		if (ci->flag & VM_CALL_VCALL) stat |= MISSING_VCALL;
 
 		cc->aux.method_missing_reason = stat;
-                CC_SET_FASTPATH(cc, vm_call_method_missing, 1);
+		CC_SET_FASTPATH(cc, vm_call_method_missing, TRUE);
 		return vm_call_method_missing(ec, cfp, calling, ci, cc);
 	    }
 	    return vm_call_method_each_type(ec, cfp, calling, ci, cc);

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

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