aboutsummaryrefslogtreecommitdiff
path: root/structs.c
diff options
context:
space:
mode:
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 ff98dfaf..5c00055f 100644
--- a/structs.c
+++ b/structs.c
@@ -171,7 +171,7 @@ CORD compile_struct_header(env_t *env, ast_t *ast)
CORD struct_code = CORD_all("struct ", full_name, "_s {\n");
for (arg_ast_t *field = def->fields; field; field = field->next) {
type_t *field_t = get_arg_ast_type(env, field);
- CORD type_code = compile_type(env, field_t);
+ CORD type_code = compile_type(field_t);
CORD_appendf(&struct_code, "%r %s%s;\n", type_code, field->name,
CORD_cmp(type_code, "Bool_t") ? "" : ":1");
}