aboutsummaryrefslogtreecommitdiffstats
path: root/vm_insnhelper.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r--vm_insnhelper.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c
index bcdf0d7a34..4f24f0f640 100644
--- a/vm_insnhelper.c
+++ b/vm_insnhelper.c
@@ -106,7 +106,8 @@ vm_pop_frame(rb_thread_t *th)
/* method dispatch */
static inline VALUE
-rb_arg_error_new(int argc, int min, int max) {
+rb_arg_error_new(int argc, int min, int max)
+{
VALUE err_mess = 0;
if (min == max) {
err_mess = rb_sprintf("wrong number of arguments (%d for %d)", argc, min);
@@ -164,7 +165,8 @@ unknown_keyword_error(const rb_iseq_t *iseq, VALUE hash)
}
void
-rb_error_arity(int argc, int min, int max) {
+rb_error_arity(int argc, int min, int max)
+{
rb_exc_raise(rb_arg_error_new(argc, min, max));
}