summaryrefslogtreecommitdiff
path: root/decls_cgen.c
diff options
context:
space:
mode:
Diffstat (limited to 'decls_cgen.c')
-rw-r--r--decls_cgen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/decls_cgen.c b/decls_cgen.c
index 0753616..8d56444 100644
--- a/decls_cgen.c
+++ b/decls_cgen.c
@@ -76,8 +76,8 @@ static void cgen_fn_decl(CGenerator *g, FnExpr *f, Type *t) {
if (sub == fn_types) continue;
if (sub != fn_types+1)
cgen_write(g, ", ");
- cgen_type_pre(g, t, f->where);
- cgen_type_post(g, t, f->where);
+ cgen_type_pre(g, sub, f->where);
+ cgen_type_post(g, sub, f->where);
}
cgen_write(g, ")");
cgen_type_post(g, &fn_types[0], f->where);