Remove more usages of unary lt (fixes #6634) (#6641)

* fixes #6634

* remove more usages of unary <
This commit is contained in:
Fabian Keller 2017-10-31 19:48:01 +01:00 • committed by Andreas Rumpf
commit 7c03c882f5
6 changed files with 7 additions and 7 deletions

View file

@ -48,7 +48,7 @@ proc reprStrAux(result: var string, s: cstring; len: int) =
add result, "nil"
return
add result, reprPointer(cast[pointer](s)) & "\""
for i in 0.. <len:
for i in 0 .. pred(len):
let c = s[i]
case c
of '"': add result, "\\\""