diff options
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r-- | vm_insnhelper.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c index 1ba1ce582b..3a0c1cf3dd 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -1750,11 +1750,10 @@ vm_call_method(rb_thread_t *th, rb_control_frame_t *cfp, rb_call_info_t *ci) rb_bug("vm_call_method: unsupported cfunc_fast argc (%d)", ci->me->def->body.cfunc.argc); } break; - default:{ - rb_bug("vm_call_method: unsupported method type (%d)", ci->me->def->type); + case VM_METHOD_TYPE_UNDEF: break; - } } + rb_bug("vm_call_method: unsupported method type (%d)", ci->me->def->type); } else { int noex_safe; |