From 8427037bb91638b57f0f805cdf1581402cb0f335 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 8 Mar 2024 14:33:54 -0500 Subject: Refactor table methods to take table structs where possible --- structs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'structs.c') diff --git a/structs.c b/structs.c index e117cdb7..fa672c49 100644 --- a/structs.c +++ b/structs.c @@ -143,7 +143,7 @@ void compile_struct_def(env_t *env, ast_t *ast) // Typeinfo: CORD_appendf(&env->code->typedefs, "extern const TypeInfo %s;\n", def->name); - type_t *t = Table_str_get(env->types, def->name); + type_t *t = Table_str_get(*env->types, def->name); CORD typeinfo = CORD_asprintf("public const TypeInfo %s = {%zu, %zu, {.tag=CustomInfo, .CustomInfo={", def->name, type_size(t), type_align(t)); -- cgit v1.2.3