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

ruby-changes:53398

From: nobu <ko1@a...>
Date: Thu, 8 Nov 2018 09:12:58 +0900 (JST)
Subject: [ruby-changes:53398] nobu:r65614 (trunk): compile.c: unreachable than rb_bug [ci skip]

nobu	2018-11-08 09:12:53 +0900 (Thu, 08 Nov 2018)

  New Revision: 65614

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

  Log:
    compile.c: unreachable than rb_bug [ci skip]
    
    * compile.c (iseq_calc_param_size): use UNREACHABLE than rb_bug,
      at where never reachable.

  Modified files:
    trunk/compile.c
Index: compile.c
===================================================================
--- compile.c	(revision 65613)
+++ compile.c	(revision 65614)
@@ -1510,7 +1510,7 @@ iseq_calc_param_size(rb_iseq_t *iseq) https://github.com/ruby/ruby/blob/trunk/compile.c#L1510
 	    body->param.size = body->param.lead_num + body->param.opt_num;
 	}
 	else {
-	    rb_bug("unreachable");
+            UNREACHABLE;
 	}
     }
     else {

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

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