summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--vm_insnhelper.c5
2 files changed, 7 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 57a2a04626..f02b010249 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Wed Oct 24 05:52:36 2012 Koichi Sasada <ko1@atdot.net>
+
+ * vm_insnhelper.c (vm_call_method): remove `default' and
+ add a case for `VM_METHOD_TYPE_UNDEF'.
+
Wed Oct 24 05:41:18 2012 Koichi Sasada <ko1@atdot.net>
* eval_error.c (error_print), vm_eval.c (eval_string_with_cref),
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;