aboutsummaryrefslogtreecommitdiffhomepage
path: root/compile.sh
diff options
context:
space:
mode:
authorGravatar Jon Brandvein <brandjon@google.com>2016-11-11 16:27:01 +0000
committerGravatar Kristina Chodorow <kchodorow@google.com>2016-11-14 14:51:36 +0000
commitfab84872276291dc8ed24e1638f743595df0e722 (patch)
tree39dc40821a4c49fbef7e2d790eac3f68157a28c3 /compile.sh
parent8d10221f7e990253f24a37555d043a9a959371eb (diff)
Fix bugs in slicing with a negative stride
There was a crash when the starting point of a negative slice is larger than the list length. In addition, there was an incorrect result when the ending point of a negative slice is less than the list's length times -1. It would wrongly exclude the first element. RELNOTES: Fix slicing bug where "abc"[:-4:-1] would give wrong answer -- MOS_MIGRATED_REVID=138878716
Diffstat (limited to 'compile.sh')
0 files changed, 0 insertions, 0 deletions