Fixed index out of bounds error
This commit is contained in:
parent
53c7f46233
commit
35f68506ea
2
parser.d
2
parser.d
|
@ -591,7 +591,7 @@ body
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (tokens[index] == TokenType.If)
|
if (index < tokens.length && tokens[index] == TokenType.If)
|
||||||
f.constraint = parseConstraint(tokens, index);
|
f.constraint = parseConstraint(tokens, index);
|
||||||
|
|
||||||
while (index < tokens.length &&
|
while (index < tokens.length &&
|
||||||
|
|
Loading…
Reference in New Issue