diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-04-29 13:25:58 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-04-29 13:25:58 -0400 |
| commit | b1b3af98ce1002b5483211e5352a79c4adae0594 (patch) | |
| tree | 3351fc854c3abfe0323b1630cf30be7fadacd470 | |
| parent | ad5bb0a899e3007b46b846e5232a8986f6b08919 (diff) | |
Fix last (?) string issue
| -rw-r--r-- | src/structs.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |
