aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index 8026d0d..40d9ad0 100644
--- a/src/main.c
+++ b/src/main.c
@@ -191,7 +191,7 @@ graph_typescope(Scope *scope, Arena a) {
191 "<TD ALIGN=\"left\"> %s </TD>" 191 "<TD ALIGN=\"left\"> %s </TD>"
192 "<TD ALIGN=\"left\"> %s</TD>" 192 "<TD ALIGN=\"left\"> %s</TD>"
193 "</TR>", 193 "</TR>",
194 type->key, type->val); 194 type->key, type->val.name);
195 type = symmap_next(&iter, &a); 195 type = symmap_next(&iter, &a);
196 } 196 }
197 println("</TABLE>>];"); 197 println("</TABLE>>];");
@@ -900,8 +900,8 @@ type_inference(Analyzer *a, Node *node, Scope *scope) {
900 eprintln( 900 eprintln(
901 "%s:%d:%d: error: struct incomplete struct literal " 901 "%s:%d:%d: error: struct incomplete struct literal "
902 "'%s', did you mean to use %s:{}?", 902 "'%s', did you mean to use %s:{}?",
903 a->file_name, node->line, node->col, type->val, 903 a->file_name, node->line, node->col, symbol,
904 type->val); 904 symbol);
905 a->err = true; 905 a->err = true;
906 return cstr(""); 906 return cstr("");
907 } else { 907 } else {