diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-03-15 01:39:00 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-03-15 01:39:00 +0000 |
commit | c037f1f61696d64cbe42b6bb4bd1f0558578146d (patch) | |
tree | 656640e92fe8a49f6a1274de07df9c590c02c0ff /vm_insnhelper.c | |
parent | 9f9201b85d282d6f1f1999bfab7ac22b26e2d768 (diff) | |
download | ruby-c037f1f61696d64cbe42b6bb4bd1f0558578146d.tar.gz |
* adjust style.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r-- | vm_insnhelper.c | 6 |
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)); } |