Changed cast to type conversion and added XXX.
This commit is contained in:
parent
9e2f79251c
commit
51034d7e3a
1 changed files with 1 additions and 1 deletions
|
|
@ -135,7 +135,7 @@ proc distribute*[T](s: seq[T], num: Positive, spread = true): seq[seq[T]] =
|
|||
result = @[s]
|
||||
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.
|
||||
result = newSeq[seq[T]](num)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue