aboutsummaryrefslogtreecommitdiff
path: root/src/compile.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-04-29 13:24:26 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-04-29 13:24:26 -0400
commitd0165d6dbddc22916648254db7959579995e2fa1 (patch)
treed11734fac0d07dda9fabea1ce306034f9fbc88de /src/compile.c
parent169129a1e634d355302b3e17658d46e2ae747d7b (diff)
Fix some string issues
Diffstat (limited to 'src/compile.c')
-rw-r--r--src/compile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compile.c b/src/compile.c
index 35aa6566..93fe92cf 100644
--- a/src/compile.c
+++ b/src/compile.c
@@ -2203,7 +2203,7 @@ CORD compile_typed_set(env_t *env, ast_t *ast, type_t *set_type)
type_t *item_type = Match(set_type, SetType)->item_type;
- size_t n = 0;
+ int64_t n = 0;
for (ast_list_t *item = set->items; item; item = item->next) {
++n;
if (item->ast->tag == Comprehension)
@@ -2280,7 +2280,7 @@ CORD compile_typed_table(env_t *env, ast_t *ast, type_t *table_type)
size_t n = 0;
for (ast_list_t *entry = table->entries; entry; entry = entry->next)
++n;
- code = CORD_all(code, ", ", String(n));
+ code = CORD_all(code, ", ", String((int64_t)n));
for (ast_list_t *entry = table->entries; entry; entry = entry->next) {
DeclareMatch(e, entry->ast, TableEntry);