From 6e8d5790c838ecacf3a33bf3162db62b5cdc5304 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Sun, 6 May 2018 09:00:41 +0200 Subject: [PATCH] pegs: fixes another null accessing bug --- lib/pure/pegs.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pure/pegs.nim b/lib/pure/pegs.nim index 6355c4899c..8304298421 100644 --- a/lib/pure/pegs.nim +++ b/lib/pure/pegs.nim @@ -617,7 +617,7 @@ proc rawMatch*(s: string, p: Peg, start: int, c: var Captures): int {. a, b: Rune result = start while i < len(p.term): - while true: + while i < len(p.term): fastRuneAt(p.term, i, a) if a != Rune('_'): break while result < s.len: