commit 12063a5dfbb71d8db9f048fc2e900167e8c81e34
parent 580261b337c2cf10dbb361364d8bb066bdd05965
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: