fix compilation warning (#12618)

* fix compilation warning

* comments incorporated
This commit is contained in:
cooldome 2019-11-08 08:16:44 +00:00 • committed by Andreas Rumpf
commit 1e71c13697

View file

@ -2685,7 +2685,7 @@ when defined(nimNewRoof):
yield T(res) yield T(res)
inc(res, step) inc(res, step)
else: else:
var res: T = T(a) var res = a
while res <= b: while res <= b:
yield res yield res
inc(res, step) inc(res, step)
@ -2706,7 +2706,7 @@ when defined(nimNewRoof):
yield T(res) yield T(res)
inc(res) inc(res)
else: else:
var res: T = T(a) var res = a
while res <= b: while res <= b:
yield res yield res
inc(res) inc(res)
@ -2730,7 +2730,7 @@ when defined(nimNewRoof):
iterator `..<`*[T](a, b: T): T {.inline.} = iterator `..<`*[T](a, b: T): T {.inline.} =
mixin inc mixin inc
var i = T(a) var i = a
while i < b: while i < b:
yield i yield i
inc i inc i
@ -2771,7 +2771,7 @@ else:
yield T(res) yield T(res)
inc(res, step) inc(res, step)
else: else:
var res: T = T(a) var res = T(a)
while res <= b: while res <= b:
yield res yield res
inc(res, step) inc(res, step)
@ -2792,7 +2792,7 @@ else:
yield T(res) yield T(res)
inc(res) inc(res)
else: else:
var res: T = T(a) var res = T(a)
while res <= b: while res <= b:
yield res yield res
inc(res) inc(res)