Skip to content
Snippets Groups Projects
Commit a31c8974 authored by Guillaume CLIVAZ's avatar Guillaume CLIVAZ
Browse files

Bugfix: index list missed the last element when the stop index was equal to the array size

parent 35e25703
Branches
No related tags found
No related merge requests found
......@@ -83,7 +83,7 @@ def get_index_list(index, size):
else:
stop = index.stop
# boundary case
if stop >= size:
if stop > size:
stop = size - 1
else:
stop = size
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment