aboutsummaryrefslogtreecommitdiff
path: root/qbe.c
diff options
context:
space:
mode:
Diffstat (limited to 'qbe.c')
-rw-r--r--qbe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/qbe.c b/qbe.c
index 06d6615..68bc1b3 100644
--- a/qbe.c
+++ b/qbe.c
@@ -382,7 +382,7 @@ mkfunc(char *name, struct type *t, struct scope *s)
for (p = t->func.params; p; p = p->next) {
if (!p->name)
error(&tok.loc, "parameter name omitted in function definition");
- if (!t->func.isprototype && !typecompatible(p->type, typeargpromote(p->type)))
+ if (!t->func.isprototype && !typecompatible(p->type, typepromote(p->type, -1)))
error(&tok.loc, "old-style function definition with parameter type incompatible with promoted type is not yet supported");
emittype(p->type);
d = mkdecl(DECLOBJECT, p->type, p->qual, LINKNONE);