We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd9ed64 commit 903c1cdCopy full SHA for 903c1cd
src/pylib/builtins/pyslice.nim
@@ -32,9 +32,9 @@ converter toPySlice*(s: PySlice1): PySlice =
32
result = PySlice(start: s.start, stop: s.stop, step: 1)
33
34
proc toNimSlice*(s: PySlice1): Slice[int] =
35
- assert result.a >= 0 and result.b >= 0
36
result.b = s.stop - 1
37
result.a = s.start
+ assert result.a >= 0 and result.b >= 0
38
39
func repr*(self: PySlice): string =
40
result = "slice(" & $self.start & ", "
0 commit comments