Skip to content

Commit

Permalink
fix another underflow in ast.zig#fullWhile() (#853)
Browse files Browse the repository at this point in the history
  • Loading branch information
travisstaloch authored Dec 27, 2022
1 parent faae689 commit 3139a78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ast.zig
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,9 @@ fn fullWhile(tree: Ast, info: full.While.Components) full.While {
tok_i -= 1;
}
if (token_tags[tok_i] == .colon and
token_tags[tok_i - 1] == .identifier)
token_tags[tok_i -| 1] == .identifier)
{
result.label_token = tok_i - 1;
result.label_token = tok_i -| 1;
}
const last_cond_token = lastToken(tree, info.cond_expr);
if (token_tags[last_cond_token + 2] == .pipe) {
Expand Down

0 comments on commit 3139a78

Please sign in to comment.