Permalink
Browse files

NSArray#delete_if should not return a nil when does not change the re…

…ceiver object
  • Loading branch information...
Watson1978 committed Jul 5, 2012
1 parent 3405fc0 commit 85f5996933bef6d91822a0720c986d0f17ce0f60
Showing with 2 additions and 1 deletion.
  1. +2 −1 NSArray.m
View
@@ -809,7 +809,8 @@
nsary_delete_if(id rcv, SEL sel)
{
RETURN_ENUMERATOR(rcv, 0, 0);
- return reject(rcv);
+ reject(rcv);
+ return (VALUE)rcv;
}
static VALUE

0 comments on commit 85f5996

Please sign in to comment.