Skip to content

Commit

Permalink
revert the condition in nsary_reverse_each() and nsary_rindex()
Browse files Browse the repository at this point in the history
  • Loading branch information
Watson1978 committed Jul 5, 2012
1 parent 1a4629b commit 2c1b87d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions NSArray.m
Expand Up @@ -489,7 +489,7 @@
rb_yield(OC2RB([rcv objectAtIndex:len]));
RETURN_IF_BROKEN();
const long n = [rcv count];
if (n != len) {
if (n < len) {
// Array was modified.
len = n;
}
Expand Down Expand Up @@ -553,7 +553,7 @@
return LONG2NUM(i);
}
const long n = [rcv count];
if (n != len) {
if (n < len) {
// Array was modified.
i = n;
}
Expand Down

0 comments on commit 2c1b87d

Please sign in to comment.