diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-04-07 18:17:27 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-04-07 18:17:27 -0400 |
| commit | fa65642ffbb40b8a95994b7a8b7d49432b24ce77 (patch) | |
| tree | b6cdfb242963661f4cd9a4269f9cd04ca8ca9d5c /src | |
| parent | 3efd7d9cfbd330ebb45f39648ee96a3e429a06f9 (diff) | |
Fix lvalue issue
Diffstat (limited to 'src')
| -rw-r--r-- | src/compile.c | 3 |
1 files changed, 1 insertions, 2 deletions
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, |
