aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBradley Lewis <22850972+BradLewis@users.noreply.github.com>2025-08-09 11:39:42 -0400
committerGitHub <noreply@github.com>2025-08-09 11:39:42 -0400
commit2c2c3052607fce94dce400eb47c60a05c7cc1048 (patch)
treebd8489d579abd23449b85dc813dea22984922d8b /src
parenteda157808c74ae676c0d6e680b0138d6707a9643 (diff)
parentcfdf59ab1424928cfe77fcb03e907337f73b946a (diff)
Merge pull request #839 from BradLewis/fix/infinite-loop-comp-lit
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