From fa65642ffbb40b8a95994b7a8b7d49432b24ce77 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 7 Apr 2025 18:17:27 -0400 Subject: Fix lvalue issue --- src/compile.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/compile.c b/src/compile.c index 3f6cb713..f1c3aa07 100644 --- a/src/compile.c +++ b/src/compile.c @@ -881,8 +881,7 @@ CORD compile_lvalue(env_t *env, ast_t *ast) : CORD_all("(Int64_t)(", compile(env, index->index), ")")); if (index->unchecked) { return CORD_all("List_lvalue_unchecked(", compile_type(item_type), ", ", target_code, ", ", - index_code, - ", sizeof(", compile_type(item_type), "))"); + index_code, ")"); } else { return CORD_all("List_lvalue(", compile_type(item_type), ", ", target_code, ", ", index_code, -- cgit v1.2.3