diff options
author | flywind <43030857+xflywind@users.noreply.github.com> | 2021-01-29 05:26:36 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-29 12:26:36 +0100 |
commit | 4e1e231e29491b856ed55c79712201a4843f9854 (patch) | |
tree | aa4c96ac05e15f639ef8d11b1d3582452c0f2389 /lib/system | |
parent | 44f672a515a2cc88f98f3e249a590fc4eb09a751 (diff) | |
download | Nim-4e1e231e29491b856ed55c79712201a4843f9854.tar.gz |
fix floats slice (#16853)
* see whether it breaks * fix * fix * minor * fix * add enum * use Ordinal types * fix tests * fix * another style * fix remainning cases
Diffstat (limited to 'lib/system')
-rw-r--r-- | lib/system/iterators.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/system/iterators.nim b/lib/system/iterators.nim index c8c0edbd4..b5d7d1b62 100644 --- a/lib/system/iterators.nim +++ b/lib/system/iterators.nim @@ -87,7 +87,7 @@ iterator items*[T: enum](E: typedesc[T]): T = for v in low(E) .. high(E): yield v -iterator items*[T](s: HSlice[T, T]): T = +iterator items*[T: Ordinal](s: Slice[T]): T = ## Iterates over the slice `s`, yielding each value between `s.a` and `s.b` ## (inclusively). for x in s.a .. s.b: |