diff options
Diffstat (limited to 'src/generator.c')
-rw-r--r-- | src/generator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/generator.c b/src/generator.c index 1181ac7..bf187e0 100644 --- a/src/generator.c +++ b/src/generator.c | |||
@@ -110,7 +110,7 @@ void gen_function_return(Type expect, Type actual) { | |||
110 | gen_function_end_declaration(); | 110 | gen_function_end_declaration(); |
111 | } | 111 | } |
112 | 112 | ||
113 | int gen_function_call(const char name[], int nb_param) { | 113 | Type gen_function_call(const char name[], int nb_param) { |
114 | Type return_type = fun_lookup(name, nb_param); | 114 | Type return_type = fun_lookup(name, nb_param); |
115 | fprintf(output, "call %s\n", name); | 115 | fprintf(output, "call %s\n", name); |
116 | if (return_type != VOID_T) fprintf(output, "push rax\n"); | 116 | if (return_type != VOID_T) fprintf(output, "push rax\n"); |