From 61e482f6f36aee6f72392a6188f2ec5c858b88fd Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 2 Sep 2024 18:47:39 -0400 Subject: Initial WIP first past --- structs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'structs.c') diff --git a/structs.c b/structs.c index 8099012e..66ca3ff1 100644 --- a/structs.c +++ b/structs.c @@ -166,7 +166,7 @@ void compile_struct_def(env_t *env, ast_t *ast) } else { // If there are no fields, we can use an EmptyStruct typeinfo, which generates less code: CORD typeinfo = CORD_asprintf("public const TypeInfo %r = {%zu, %zu, {.tag=EmptyStruct, .EmptyStruct.name=%r}};\n", - full_name, type_size(t), type_align(t), Text$quoted(def->name, false)); + full_name, type_size(t), type_align(t), Text$quoted(Text$from_str(def->name), false)); env->code->typeinfos = CORD_all(env->code->typeinfos, typeinfo); } -- cgit v1.2.3