From d68c0bf44a53dad565210523abb77ba211f769d7 Mon Sep 17 00:00:00 2001 From: mratsim Date: Wed, 2 May 2018 17:24:17 +0200 Subject: [PATCH] Fix failing tests due to Nim string change between Apr 27 and Apr 29 (doc: https://github.com/nim-lang/Nim/commit/5237ef4f5280fef8df630f265cc67869d013c0ef) --- src/io.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/io.nim b/src/io.nim index 613c53a..bfd9f8c 100644 --- a/src/io.nim +++ b/src/io.nim @@ -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.}=