aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-08-09 11:38:53 -0400
committerBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-08-09 11:38:53 -0400
commitcfdf59ab1424928cfe77fcb03e907337f73b946a (patch)
tree3a71d503d93313c4707000c99f1326f7a6d80ad0 /src
parent08dcc05a5b80a3751b9e06a562509fd9ffd7aa84 (diff)
Fix issue getting stuck in an infinite loop when unwraping comp lits
Diffstat (limited to 'src')
-rw-r--r--src/server/ast.odin2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/server/ast.odin b/src/server/ast.odin
index 04993d0..dc5c0a9 100644
--- a/src/server/ast.odin
+++ b/src/server/ast.odin
@@ -168,6 +168,8 @@ unwrap_comp_literal :: proc(expr: ^ast.Expr) -> (^ast.Comp_Lit, int, bool) {
if unary.op.kind == .And {
expr = unary.expr
n += 1
+ } else {
+ break
}
} else {
break