diff options
Diffstat (limited to 'decls_cgen.c')
-rw-r--r-- | decls_cgen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/decls_cgen.c b/decls_cgen.c index f07b17e..40087f5 100644 --- a/decls_cgen.c +++ b/decls_cgen.c @@ -93,7 +93,7 @@ static bool cgen_decls_decl(CGenerator *g, Declaration *d) { cgen_write(g, "{"); cgen_nl(g); g->indent_lvl++; - arr_foreach(val->type->struc.fields, Field, f) { + arr_foreach(val->type->struc->fields, Field, f) { if (!cgen_type_pre(g, f->type, d->where)) return false; cgen_write(g, " "); cgen_ident(g, f->name); |