aboutsummaryrefslogtreecommitdiff
path: root/src/compile/indexing.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/compile/indexing.c')
-rw-r--r--src/compile/indexing.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compile/indexing.c b/src/compile/indexing.c
index 771e9acd..af5056d7 100644
--- a/src/compile/indexing.c
+++ b/src/compile/indexing.c
@@ -22,7 +22,7 @@ Text_t compile_indexing(env_t *env, ast_t *ast, bool checked) {
DeclareMatch(ptr, indexed_type, PointerType);
if (ptr->pointed->tag == ListType) {
return Texts("*({ List_t *list = ", compile(env, indexing->indexed), "; LIST_INCREF(*list); list; })");
- } else if (ptr->pointed->tag == TableType || ptr->pointed->tag == SetType) {
+ } else if (ptr->pointed->tag == TableType) {
return Texts("*({ Table_t *t = ", compile(env, indexing->indexed), "; TABLE_INCREF(*t); t; })");
} else {
return Texts("*(", compile(env, indexing->indexed), ")");