From b1b3af98ce1002b5483211e5352a79c4adae0594 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 29 Apr 2025 13:25:58 -0400 Subject: Fix last (?) string issue --- src/structs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/structs.c') diff --git a/src/structs.c b/src/structs.c index 0735d474..cad6fea2 100644 --- a/src/structs.c +++ b/src/structs.c @@ -65,7 +65,7 @@ CORD compile_struct_header(env_t *env, ast_t *ast) CORD struct_code = def->external ? CORD_EMPTY : CORD_all(type_code, " {\n", fields, "};\n"); type_t *t = Table$str_get(*env->types, def->name); - CORD unpadded_size = def->opaque ? CORD_all("sizeof(", type_code, ")") : String(unpadded_struct_size(t)); + CORD unpadded_size = def->opaque ? CORD_all("sizeof(", type_code, ")") : String((int64_t)unpadded_struct_size(t)); CORD typeinfo_code = CORD_all("extern const TypeInfo_t ", typeinfo_name, ";\n"); CORD optional_code = CORD_EMPTY; if (!def->opaque) { -- cgit v1.2.3