summaryrefslogtreecommitdiff
path: root/cgen.c
diff options
context:
space:
mode:
Diffstat (limited to 'cgen.c')
-rw-r--r--cgen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cgen.c b/cgen.c
index e8ea47f..1236148 100644
--- a/cgen.c
+++ b/cgen.c
@@ -1280,7 +1280,7 @@ static bool cgen_expr(CGenerator *g, Expression *e) {
cgen_expr(g, e->binary.lhs);
bool is_ptr = e->binary.lhs->type.kind == TYPE_PTR;
cgen_write(g, is_ptr ? "->" :".");
- cgen_ident(g, e->binary.field->name);
+ cgen_ident(g, e->binary.dot.field->name);
cgen_write(g, ")");
handled = true;
} break;