summaryrefslogtreecommitdiff
path: root/hash.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1999-02-09 03:29:23 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1999-02-09 03:29:23 +0000
commitbcec81835dc263b933f2629aa5329f6c943da60d (patch)
treed9de5eead40ab6380ba7b9fc4b335565e718f6fe /hash.c
parent8ef071c882218ff2d9f00f51f55e872343776104 (diff)
990209
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hash.c b/hash.c
index 3f1ce8cb84..ec2b28ce15 100644
--- a/hash.c
+++ b/hash.c
@@ -439,7 +439,7 @@ delete_if_i(key, value)
VALUE key, value;
{
if (key == Qnil) return ST_CONTINUE;
- if (rb_yield(assoc_new(key, value)))
+ if (RTEST(rb_yield(assoc_new(key, value))))
return ST_DELETE;
return ST_CONTINUE;
}