aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2019-12-17 20:22:00 +0900
committerKoichi Sasada <ko1@atdot.net>2019-12-17 20:23:15 +0900
commit9d3ffcfbfc742ed5053b59678dbf97773a7dddc1 (patch)
treea0cce286e36333d60d77693a312a5abb9046e56a
parent65731a1330ed02691e3c343d2feeb8d0a72af3fd (diff)
downloadruby-9d3ffcfbfc742ed5053b59678dbf97773a7dddc1.tar.gz
disable assertion.
This assertion is not needed because we found the bug. ba11a74745.
-rw-r--r--vm_core.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_core.h b/vm_core.h
index edcfdb7abc..e7104818c0 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -497,7 +497,7 @@ static inline const rb_iseq_t *
def_iseq_ptr(rb_method_definition_t *def)
{
//TODO: re-visit. to check the bug, enable this assertion.
-#if 1 || VM_CHECK_MODE > 0
+#if VM_CHECK_MODE > 0
if (def->type != VM_METHOD_TYPE_ISEQ) rb_bug("def_iseq_ptr: not iseq (%d)", def->type);
#endif
return rb_iseq_check(def->body.iseq.iseqptr);