diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2026-01-11 20:06:45 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2026-01-11 20:06:45 -0500 |
| commit | b97ea6b6ac3498b21321e1f93ccc1a2dd145e9d7 (patch) | |
| tree | 834180f2c5a2ad29424279153d01c2bd52679823 /src/compile/indexing.c | |
| parent | 573656fce2b7e1b0fc36944f60fd135117b6bbb6 (diff) | |
Rename AST nodes: Int -> Integer, Num -> Number
Diffstat (limited to 'src/compile/indexing.c')
| -rw-r--r-- | src/compile/indexing.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compile/indexing.c b/src/compile/indexing.c index 031ef9a0..0c0ab770 100644 --- a/src/compile/indexing.c +++ b/src/compile/indexing.c @@ -37,7 +37,7 @@ Text_t compile_indexing(env_t *env, ast_t *ast, bool checked) { type_t *item_type = Match(container_t, ListType)->item_type; Text_t list = compile_to_pointer_depth(env, indexing->indexed, 0, false); Text_t index_code = - indexing->index->tag == Int + indexing->index->tag == Integer ? compile_int_to_type(env, indexing->index, Type(IntType, .bits = TYPE_IBITS64)) : (index_t->tag == BigIntType ? Texts("Int64$from_int(", compile(env, indexing->index), ", no)") : Texts("(Int64_t)(", compile(env, indexing->index), ")")); |
