Skip to content

Commit

Permalink
fix the condition, because causes infinity loop
Browse files Browse the repository at this point in the history
  • Loading branch information
Watson1978 committed Jul 5, 2012
1 parent 50e13ea commit aabbd1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NSArray.m
Expand Up @@ -553,7 +553,7 @@
return LONG2NUM(i);
}
const long n = [rcv count];
if (n != i) {
if (n != len) {
// Array was modified.
i = n;
}
Expand Down

0 comments on commit aabbd1e

Please sign in to comment.