Fix failing tests due to Nim string change between Apr 27 and Apr 29 (doc: 5237ef4f52)

This commit is contained in:
mratsim 2018-05-02 17:24:17 +02:00
parent fd0482180f
commit d68c0bf44a
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ func nextNonBlank(current_idx: var int, s: string) {.inline.} =
const blanks = {' ', '_'}
inc current_idx
while s[current_idx] in blanks and current_idx < s.len:
while current_idx < s.len and s[current_idx] in blanks:
inc current_idx
func readDecChar(c: range['0'..'9']): int {.inline.}=