summaryrefslogtreecommitdiff
path: root/vm_insnhelper.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-10-23 20:53:35 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-10-23 20:53:35 +0000
commite1d772c801b95a5b0c8ed898b48d7205faceb83c (patch)
tree85361ba79425a84c48452a3f4e4513bfda483fa3 /vm_insnhelper.c
parent378041cfbf91809fe84fe70bbc90162f065a18a0 (diff)
* vm_insnhelper.c (vm_call_method): remove `default' and
add a case for `VM_METHOD_TYPE_UNDEF'. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37306 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r--vm_insnhelper.c5
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;