From 30aa6b99cafa63269b8845e335290cb4f4f046b5 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 1 May 2008 07:10:23 +0000 Subject: [PATCH] * hash.c (env_delete_if): return enumerator if no block given. [ruby-dev:34554] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16250 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ hash.c | 1 + 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index ca79ffbb17..5c3f42d8c4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu May 1 16:10:21 2008 Nobuyoshi Nakada + + * hash.c (env_delete_if): return enumerator if no block given. + [ruby-dev:34554] + Wed Apr 30 21:36:40 2008 Masatoshi SEKI * lib/erb.rb (url_encode): [ruby-dev:34497] ERB::Util#url_encode diff --git a/hash.c b/hash.c index 89c470f9e4..8d3567e315 100644 --- a/hash.c +++ b/hash.c @@ -2184,6 +2184,7 @@ env_reject_bang(VALUE ehash) static VALUE env_delete_if(VALUE ehash) { + RETURN_ENUMERATOR(ehash, 0, 0); env_reject_bang(ehash); return envtbl; }