Merge pull request #675 from Rosuav/seq_simplify

Remove unnecessary bounds check from mp_seq_get_fast_slice_indexes.
This commit is contained in:
Paul Sokolovsky 2014-06-09 23:40:04 +03:00
commit 62f7ba7a81
1 changed files with 0 additions and 4 deletions

View File

@ -80,10 +80,6 @@ bool mp_seq_get_fast_slice_indexes(machine_uint_t len, mp_obj_t slice, mp_bound_
}
if (stop < 0) {
stop = len + stop;
// CPython returns empty sequence in such case
if (stop < 0) {
stop = start;
}
} else if (stop > len) {
stop = len;
}