This commit is contained in:
Yuichi Nishiwaki 2017-04-15 04:12:26 +09:00
parent ac0adda263
commit 69ab7e4970
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ arg_error(pic_state *pic, int actual, bool varg, int expected)
{
const char *msg;
msg = pic_str(pic, pic_strf_value(pic, "wrong number of arguments (%d for %s%d)", actual - 1, (varg ? "at least " : ""), expected - 1), NULL);
msg = pic_str(pic, pic_strf_value(pic, "wrong number of arguments (%d for %s%d)", actual, (varg ? "at least " : ""), expected), NULL);
pic_error(pic, msg, 0);
}