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

ruby-changes:41903

From: nobu <ko1@a...>
Date: Tue, 1 Mar 2016 23:42:43 +0900 (JST)
Subject: [ruby-changes:41903] nobu:r53977 (trunk): vm_method.c: fix assertion

nobu	2016-03-01 23:43:34 +0900 (Tue, 01 Mar 2016)

  New Revision: 53977

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

  Log:
    vm_method.c: fix assertion
    
    * vm_method.c (prepare_callable_method_entry): assert same
      condition only once for each case, not twice for module instance
      method.

  Modified files:
    trunk/vm_method.c
Index: vm_method.c
===================================================================
--- vm_method.c	(revision 53976)
+++ vm_method.c	(revision 53977)
@@ -818,9 +818,9 @@ prepare_callable_method_entry(VALUE defi https://github.com/ruby/ruby/blob/trunk/vm_method.c#L818
     }
     else {
 	cme = (const rb_callable_method_entry_t *)me;
+	VM_ASSERT(callable_method_entry_p(cme));
     }
 
-    VM_ASSERT(callable_method_entry_p(cme));
     return cme;
 }
 

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

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