From 13b4fc0a1e32008f125f73148d01f12bdac3a80e Mon Sep 17 00:00:00 2001 From: pacien Date: Tue, 5 Jun 2018 14:35:02 +0200 Subject: Simplify return type state on call --- src/generator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/generator.c') diff --git a/src/generator.c b/src/generator.c index d5df545..126d2b1 100644 --- a/src/generator.c +++ b/src/generator.c @@ -110,7 +110,7 @@ void gen_function_return(Type expect, Type actual) { gen_function_end_declaration(); } -int gen_function_call(const char name[], int nb_param) { +Type gen_function_call(const char name[], int nb_param) { Type return_type = fun_lookup(name, nb_param); fprintf(output, "call %s\n", name); if (return_type != VOID_T) fprintf(output, "push rax\n"); -- cgit v1.2.3