aboutsummaryrefslogtreecommitdiff
path: root/structs.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-03-11 15:54:06 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-03-11 15:54:06 -0400
commit888a977132a8494a512d5f1539fc35f464da40a2 (patch)
tree111f23165886e354a6ca8288a0f210159c3d68f3 /structs.c
parent0b2c4180483f3b2832137bea78dc565d469f8682 (diff)
Modify compile_type_info() so it no longer needs an env_t
Diffstat (limited to 'structs.c')
-rw-r--r--structs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/structs.c b/structs.c
index 5b8aafd3..cf86e312 100644
--- a/structs.c
+++ b/structs.c
@@ -36,7 +36,7 @@ CORD compile_struct_typeinfo(env_t *env, ast_t *ast)
typeinfo = CORD_asprintf("%r, .StructInfo.fields=(NamedType_t[%d]){", typeinfo, num_fields);
for (arg_ast_t *f = def->fields; f; f = f->next) {
type_t *field_type = get_arg_ast_type(env, f);
- typeinfo = CORD_all(typeinfo, "{\"", f->name, "\", ", compile_type_info(env, field_type), "}");
+ typeinfo = CORD_all(typeinfo, "{\"", f->name, "\", ", compile_type_info(field_type), "}");
if (f->next) typeinfo = CORD_all(typeinfo, ", ");
}
typeinfo = CORD_all(typeinfo, "}");