commit 07080bf7b7a6efd833bbb5da74c9ace959ef5ed9
parent 961c4456038b77fcf1832b819ef7210c5af4f652
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Mon, 15 Nov 2021 18:45:30 +0100
cc1: fix function argument number in error message
"incompatible type for argument %d in function call"
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/cmd/cc/cc1/expr.c b/src/cmd/cc/cc1/expr.c
@@ -722,7 +722,7 @@ arguments(Node *np)
continue;
}
errorp("incompatible type for argument %d in function call",
- tp->n.elem - n + 1);
+ tp->n.elem - n);
} while (accept(','));
no_pars: