diff options
| author | 2026-02-21 18:36:06 +0100 | |
|---|---|---|
| committer | 2026-02-21 18:36:06 +0100 | |
| commit | 73340cf5c0db53af2ac3b246b8ff6a531d326006 (patch) | |
| tree | 3e616320d947c236970d1f06e74b95a17d6261b6 | |
| parent | 8aa0c6a5526a69b7f1b992990db59b275dfc2d80 (diff) | |
c: fix default argument promotion for function types
| -rw-r--r-- | c/c.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -399,6 +399,7 @@ argpromote(union type t) if (isint(t)) t.t = intpromote(t.t); else if (t.t == TYFLOAT) t.t = TYDOUBLE; else if (t.t == TYARRAY) return mkptrtype(typechild(t), t.flag & TFCHLDQUAL); + else if (t.t == TYFUNC) return mkptrtype(t, 0); return t; } |