From 839c1983a0dad0232da3ceda9c7c02a49715453c Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 8 Oct 2024 21:10:36 -0400 Subject: Reduce padding needed for optional types and clean up some redundant type padding --- repl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'repl.c') diff --git a/repl.c b/repl.c index bd741165..601231fe 100644 --- a/repl.c +++ b/repl.c @@ -510,7 +510,7 @@ void eval(env_t *env, ast_t *ast, void *dest) char item_buf[item_size] = {}; for (ast_list_t *item = Match(ast, Array)->items; item; item = item->next) { eval(env, item->ast, item_buf); - Array$insert(&arr, item_buf, I(0), (int64_t)padded_type_size(Match(t, ArrayType)->item_type)); + Array$insert(&arr, item_buf, I(0), (int64_t)type_size(Match(t, ArrayType)->item_type)); } memcpy(dest, &arr, sizeof(Array_t)); break; -- cgit v1.2.3