Permalink
Browse files

raise error on too many arguments

  • Loading branch information...
1 parent cd71383 commit 14e28a8a4d6d13275564561ddca805e7ac3d7aa0 @matz matz committed May 23, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/class.c
View
@@ -578,7 +578,7 @@ mrb_get_args(mrb_state *mrb, const char *format, ...)
break;
}
}
- if (!*format && argc > i) {
+ if (!c && argc > i) {
mrb_raise(mrb, E_ARGUMENT_ERROR, "wrong number of arguments");
}
va_end(ap);

0 comments on commit 14e28a8

Please sign in to comment.