diff options
author | Hans Raaf <hara@oderwat.de> | 2015-03-07 17:51:03 +0100 |
---|---|---|
committer | Hans Raaf <hara@oderwat.de> | 2015-03-07 17:51:03 +0100 |
commit | 51034d7e3ac592d111e62b023c55e001bd3d2f94 (patch) | |
tree | 4ccdc06c0162220720bb1f68d27adce95f98f0ca /lib/pure/collections | |
parent | 9e2f79251ce3f4982eea457c1f0ced7e1694a4f1 (diff) | |
download | Nim-51034d7e3ac592d111e62b023c55e001bd3d2f94.tar.gz |
Changed cast to type conversion and added XXX.
Diffstat (limited to 'lib/pure/collections')
-rw-r--r-- | lib/pure/collections/sequtils.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/collections/sequtils.nim b/lib/pure/collections/sequtils.nim index 2ad7dea0a..edb904cc6 100644 --- a/lib/pure/collections/sequtils.nim +++ b/lib/pure/collections/sequtils.nim @@ -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) |