diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-07-10 13:47:15 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-07-10 13:47:15 -0400 |
| commit | 3db57b4d2e16ab25fbd07401ec7b3a738f8dae8a (patch) | |
| tree | bdb65f97575b1c57da8dc53a8cb542b8772b3768 /compile.c | |
| parent | 068d0e8563dab7708711e0171ba1190d6037f0c9 (diff) | |
Bugfix for unchecked array access
Diffstat (limited to 'compile.c')
| -rw-r--r-- | compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2063,7 +2063,7 @@ CORD compile(env_t *env, ast_t *ast) CORD index = compile(env, indexing->index); file_t *f = indexing->index->file; if (indexing->unchecked) - return CORD_all("Array_get_unchecked", compile_type(item_type), ", ", arr, ", ", index, ")"); + return CORD_all("Array_get_unchecked(", compile_type(item_type), ", ", arr, ", ", index, ")"); else return CORD_all("Array_get(", compile_type(item_type), ", ", arr, ", ", index, ", ", Text$quoted(f->filename, false), ", ", CORD_asprintf("%ld", (int64_t)(indexing->index->start - f->text)), ", ", |
