diff options
author | Adam NAILI | 2018-06-05 17:24:18 +0200 |
---|---|---|
committer | Adam NAILI | 2018-06-05 17:24:18 +0200 |
commit | f7760de088b7da0bca973fb40ef4112c24775ac4 (patch) | |
tree | 06ce6ef9ed41d0c1e891328a7731eb99f895e59f /src/symbol_table.c | |
parent | 4b53a522a626d2597f7a90c16b2aa16acbc62e6a (diff) | |
download | tpc-compiler-f7760de088b7da0bca973fb40ef4112c24775ac4.tar.gz |
Return fix
Diffstat (limited to 'src/symbol_table.c')
-rw-r--r-- | src/symbol_table.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/symbol_table.c b/src/symbol_table.c index 9d9617c..64399bd 100644 --- a/src/symbol_table.c +++ b/src/symbol_table.c | |||
@@ -213,6 +213,6 @@ static char *string_of_type(int type) { | |||
213 | void check_expected_type(int type_to_check, int type_expected) { | 213 | void check_expected_type(int type_to_check, int type_expected) { |
214 | if (type_to_check != type_expected) | 214 | if (type_to_check != type_expected) |
215 | fprintf(stderr, "Expected type : %s -> Got type : %s (near line %d)\n", | 215 | fprintf(stderr, "Expected type : %s -> Got type : %s (near line %d)\n", |
216 | string_of_type(type_to_check), string_of_type(type_to_check), | 216 | string_of_type(type_expected), string_of_type(type_to_check), |
217 | lineno); | 217 | lineno); |
218 | } | 218 | } |