aboutsummaryrefslogtreecommitdiff
path: root/src/compile/lists.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/lists.c
parentc0c6fe863f8e074cbe8297b5da2a476f455b6518 (diff)
Switch to using Texts(x) instead of Texts(String(x)) when possible
Diffstat (limited to 'src/compile/lists.c')
-rw-r--r--src/compile/lists.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compile/lists.c b/src/compile/lists.c
index 5df39863..d9d71278 100644
--- a/src/compile/lists.c
+++ b/src/compile/lists.c
@@ -33,7 +33,7 @@ Text_t compile_typed_list(env_t *env, ast_t *ast, type_t *list_type) {
{
env_t *scope = item_type->tag == EnumType ? with_enum_scope(env, item_type) : env;
if (is_incomplete_type(item_type)) code_err(ast, "This list's type can't be inferred!");
- Text_t code = Texts("TypedListN(", compile_type(item_type), ", ", String(n));
+ Text_t code = Texts("TypedListN(", compile_type(item_type), ", ", n);
for (ast_list_t *item = list->items; item; item = item->next) {
code = Texts(code, ", ", compile_to_type(scope, item->ast, item_type));
}