aboutsummaryrefslogtreecommitdiff
path: root/src/compile/assignments.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/compile/assignments.c')
-rw-r--r--src/compile/assignments.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compile/assignments.c b/src/compile/assignments.c
index 8c6af3ee..07ca4590 100644
--- a/src/compile/assignments.c
+++ b/src/compile/assignments.c
@@ -165,7 +165,7 @@ Text_t compile_lvalue(env_t *env, ast_t *ast) {
Text_t target_code = compile_to_pointer_depth(env, index->indexed, 1, false);
type_t *item_type = Match(container_t, ListType)->item_type;
Text_t index_code =
- index->index->tag == Int
+ index->index->tag == Integer
? compile_int_to_type(env, index->index, Type(IntType, .bits = TYPE_IBITS64))
: (index_t->tag == BigIntType ? Texts("Int64$from_int(", compile(env, index->index), ", no)")
: Texts("(Int64_t)(", compile(env, index->index), ")"));