Permalink
Browse files

Merge from ruby_1_8.

git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_7@16721 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information...
1 parent 5376e8a commit ada0022cb19f72fbf13ca90c0cfedd1c31b0dc9b @knu knu committed May 31, 2008
Showing with 6 additions and 0 deletions.
  1. +5 −0 ChangeLog
  2. +1 −0 array.c
View
5 ChangeLog
@@ -1,3 +1,8 @@
+Sat May 31 20:56:04 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * array.c (rb_ary_delete_if): should return enumerator if no block
+ is given. [ruby-dev:34901]
+
Sat May 31 18:28:17 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* suppress warnings with -Wwrite-string.
View
1 array.c
@@ -2185,6 +2185,7 @@ static VALUE
rb_ary_delete_if(ary)
VALUE ary;
{
+ RETURN_ENUMERATOR(ary, 0, 0);
rb_ary_reject_bang(ary);
return ary;
}

0 comments on commit ada0022

Please sign in to comment.