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

ruby-changes:55112

From: ko1 <ko1@a...>
Date: Thu, 21 Mar 2019 05:37:09 +0900 (JST)
Subject: [ruby-changes:55112] ko1:r67319 (trunk): remove redundant check.

ko1	2019-03-21 05:37:03 +0900 (Thu, 21 Mar 2019)

  New Revision: 67319

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

  Log:
    remove redundant check.

  Modified files:
    trunk/vm_insnhelper.c
Index: vm_insnhelper.c
===================================================================
--- vm_insnhelper.c	(revision 67318)
+++ vm_insnhelper.c	(revision 67319)
@@ -1787,7 +1787,7 @@ vm_callee_setup_arg(rb_execution_context https://github.com/ruby/ruby/blob/trunk/vm_insnhelper.c#L1787
                              !(METHOD_ENTRY_VISI(cc->me) == METHOD_VISI_PROTECTED)));
             return 0;
         }
-        else if (rb_iseq_only_optparam_p(iseq) && !(ci->flag & VM_CALL_KW_SPLAT)) {
+        else if (rb_iseq_only_optparam_p(iseq)) {
             rb_control_frame_t *cfp = ec->cfp;
             CALLER_SETUP_ARG(cfp, calling, ci); /* splat arg */
 

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

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