small patch

fuck you.
This commit is contained in:
N00nehere 2022-05-20 12:28:18 +02:00
parent 5a821c055a
commit 31e95ef21e
1 changed files with 1 additions and 1 deletions

View File

@ -172,7 +172,7 @@ proc peek(self: Compiler, distance: int = 0): ASTNode =
## AST node in the tree is returned. A negative
## distance may be used to retrieve previously
## consumed AST nodes
if self.ast.high() == -1 or self.current + distance > self.ast.high() or
if self.ast.high() <= -1 or self.current + distance > self.ast.high() or
self.current + distance < 0:
result = self.ast[^1]
else: