From 35f68506eadc7dba06af27f61e2e49930c62ca70 Mon Sep 17 00:00:00 2001 From: Hackerpilot Date: Sun, 17 Jun 2012 12:10:43 +0000 Subject: [PATCH] Fixed index out of bounds error --- parser.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parser.d b/parser.d index 07d347f..500d195 100644 --- a/parser.d +++ b/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); while (index < tokens.length &&