small patch #5

Closed
N00nehere wants to merge 49 commits from (deleted):n00nehere-patch-1 into master
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 31e95ef21e - Show all commits

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: