aboutsummaryrefslogtreecommitdiff
path: root/src/compile/indexing.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-09-01 13:17:43 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-09-01 13:17:43 -0400
commitee020c72d92c3807fa4afcd1e170d3df81688b97 (patch)
tree60d0bd641db08bab082bbbb7f10f72d29995cdfe /src/compile/indexing.c
parentc0c6fe863f8e074cbe8297b5da2a476f455b6518 (diff)
Switch to using Texts(x) instead of Texts(String(x)) when possible
Diffstat (limited to 'src/compile/indexing.c')
-rw-r--r--src/compile/indexing.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compile/indexing.c b/src/compile/indexing.c
index e99feeb2..39af1160 100644
--- a/src/compile/indexing.c
+++ b/src/compile/indexing.c
@@ -44,8 +44,8 @@ Text_t compile_indexing(env_t *env, ast_t *ast) {
return Texts("List_get_unchecked(", compile_type(item_type), ", ", list, ", ", index_code, ")");
else
return Texts("List_get(", compile_type(item_type), ", ", list, ", ", index_code, ", ",
- String((int64_t)(indexing->index->start - f->text)), ", ",
- String((int64_t)(indexing->index->end - f->text)), ")");
+ (int64_t)(indexing->index->start - f->text), ", ", (int64_t)(indexing->index->end - f->text),
+ ")");
} else if (container_t->tag == TableType) {
DeclareMatch(table_type, container_t, TableType);
if (indexing->unchecked) code_err(ast, "Table indexes cannot be unchecked");