aboutsummaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-11-09 15:11:11 -0500
committerBruce Hill <bruce@bruce-hill.com>2024-11-09 15:11:11 -0500
commit7a4f2e73addf6dfcde2a6b17b62b961608e556a0 (patch)
treec03e4758e5725a4a6d352f5bb7d323796ed99947 /compile.c
parent5d35f286336878a3529dabdb3f7800b6f84712eb (diff)
Rename `from_text()` to `parse()`
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compile.c b/compile.c
index 372cd91d..081e5d69 100644
--- a/compile.c
+++ b/compile.c
@@ -875,7 +875,7 @@ CORD compile_statement(env_t *env, ast_t *ast)
"}\n");
env->code->funcs = CORD_cat(env->code->funcs, wrapper);
} else if (fndef->cache && fndef->cache->tag == Int) {
- OptionalInt64_t cache_size = Int64$from_text(Text$from_str(Match(fndef->cache, Int)->str));
+ OptionalInt64_t cache_size = Int64$parse(Text$from_str(Match(fndef->cache, Int)->str));
const char *arg_type_name = heap_strf("%s$args", Match(fndef->name, Var)->name);
ast_t *args_def = FakeAST(StructDef, .name=arg_type_name, .fields=fndef->args);
prebind_statement(env, args_def);