aboutsummaryrefslogtreecommitdiff
path: root/src/symbol_table.c
diff options
context:
space:
mode:
authorAdam NAILI2018-06-05 17:24:18 +0200
committerAdam NAILI2018-06-05 17:24:18 +0200
commitf7760de088b7da0bca973fb40ef4112c24775ac4 (patch)
tree06ce6ef9ed41d0c1e891328a7731eb99f895e59f /src/symbol_table.c
parent4b53a522a626d2597f7a90c16b2aa16acbc62e6a (diff)
downloadtpc-compiler-f7760de088b7da0bca973fb40ef4112c24775ac4.tar.gz
Return fix
Diffstat (limited to 'src/symbol_table.c')
-rw-r--r--src/symbol_table.c2
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) {
213void check_expected_type(int type_to_check, int type_expected) { 213void 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}