Changed cast to type conversion and added XXX.

This commit is contained in:
Hans Raaf 2015-03-07 17:51:03 +01:00
commit 51034d7e3a

View file

@ -135,7 +135,7 @@ proc distribute*[T](s: seq[T], num: Positive, spread = true): seq[seq[T]] =
result = @[s] result = @[s]
return return
let num = cast[int](num) let num = int(num) # XXX probably only needed because of .. bug
# Create the result and calculate the stride size and the remainder if any. # Create the result and calculate the stride size and the remainder if any.
result = newSeq[seq[T]](num) result = newSeq[seq[T]](num)