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

ruby-changes:44307

From: nobu <ko1@a...>
Date: Sun, 9 Oct 2016 11:57:34 +0900 (JST)
Subject: [ruby-changes:44307] nobu:r56380 (trunk): vm_method.c: update assertion [ci skip]

nobu	2016-10-09 11:57:29 +0900 (Sun, 09 Oct 2016)

  New Revision: 56380

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

  Log:
    vm_method.c: update assertion [ci skip]
    
    * vm_method.c (prepare_callable_method_entry): update assertion
      as defined_class may be T_MODULE not only I_ICLASS since r56213.
      [Feature #12534]

  Modified files:
    trunk/vm_method.c
Index: vm_method.c
===================================================================
--- vm_method.c	(revision 56379)
+++ vm_method.c	(revision 56380)
@@ -804,7 +804,7 @@ prepare_callable_method_entry(VALUE defi https://github.com/ruby/ruby/blob/trunk/vm_method.c#L804
     const rb_callable_method_entry_t *cme;
 
     if (me && me->defined_class == 0) {
-	VM_ASSERT(RB_TYPE_P(defined_class, T_ICLASS));
+	VM_ASSERT(RB_TYPE_P(defined_class, T_ICLASS) || RB_TYPE_P(defined_class, T_MODULE));
 	VM_ASSERT(me->defined_class == 0);
 
 	if ((mtbl = RCLASS_CALLABLE_M_TBL(defined_class)) == NULL) {

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

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