summaryrefslogtreecommitdiff
path: root/sdecls_cgen.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-02-14 12:14:53 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2020-02-14 12:14:53 -0500
commit41ba175c4bcfac35bf55d569a3d06198465ae33e (patch)
treef8d2797a1eff55076d4f499cdee4a9643c442211 /sdecls_cgen.c
parentae45eba904bd5fd1008e19630eaf1d384c597545 (diff)
minor improvements and preparing for struct arguments
Diffstat (limited to 'sdecls_cgen.c')
-rw-r--r--sdecls_cgen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sdecls_cgen.c b/sdecls_cgen.c
index 83c978e..e84b459 100644
--- a/sdecls_cgen.c
+++ b/sdecls_cgen.c
@@ -13,7 +13,7 @@ static bool cgen_sdecls_type(CGenerator *g, Type *type) {
if (!(type->flags & TYPE_IS_RESOLVED)) /* non-instance constant fn parameter type */
return true;
if (type->kind == TYPE_STRUCT) {
- StructDef *sdef = type->struc;
+ StructDef *sdef = type->struc.def;
/* we'll actually define the struct later; here we can just declare it */
if (sdef->flags & STRUCT_DEF_CGEN_DECLARED) {