From 69ab7e4970cb2b51ab845651ebb6e137d0c8f83f Mon Sep 17 00:00:00 2001 From: Yuichi Nishiwaki Date: Sat, 15 Apr 2017 04:12:26 +0900 Subject: [PATCH] cleanup --- lib/proc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/proc.c b/lib/proc.c index 732c3617..10771a05 100644 --- a/lib/proc.c +++ b/lib/proc.c @@ -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); }