Permalink
Browse files

fix another off by one error with Range and Array slices

  • Loading branch information...
1 parent 4f73472 commit 5c9aa2c0f0245ad34fc51f1f0e4d2d91b1341ce5 @bubaflub bubaflub committed Feb 21, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/classes/Array.pir
View
@@ -1536,7 +1536,7 @@ Retrieve the number of elements in C<self>
end = r.'to'()
$P0 = getattribute r, '$!to_exclusive'
- if $P0 goto skip_exclusive_to
+ unless $P0 goto skip_exclusive_to
inc end
skip_exclusive_to:

0 comments on commit 5c9aa2c

Please sign in to comment.