Skip to content
Snippets Groups Projects
Commit 825590e1 authored by Vincent POLLET's avatar Vincent POLLET
Browse files

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

parent 199db142
No related branches found
No related tags found
1 merge request!22Draft: Implements metadata handling for bob.io.stream.Stream and bob.io.stream.StreamFile
Pipeline #59930 passed
...@@ -87,7 +87,7 @@ def get_index_list(index, size): ...@@ -87,7 +87,7 @@ def get_index_list(index, size):
else: else:
stop = index.stop stop = index.stop
# boundary case # boundary case
if stop >= size: if stop > size:
stop = size - 1 stop = size - 1
else: else:
stop = size stop = size
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment