diff options
author | glass <glass@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-07-17 13:59:53 +0000 |
---|---|---|
committer | glass <glass@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-07-17 13:59:53 +0000 |
commit | b30eb0fa0490062252e1d6132221228f4b773a12 (patch) | |
tree | 4e30ef6d8894988deab0003f61af3ce0a5c90a8a | |
parent | 15f7c7f9d4b28708216ca981312991a7850004eb (diff) | |
download | ruby-b30eb0fa0490062252e1d6132221228f4b773a12.tar.gz |
* hash.c (delete_if_i): use ST_DELETE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | hash.c | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Wed Jul 17 22:57:40 2013 Masaki Matsushita <glass.saga@gmail.com> + + * hash.c (delete_if_i): use ST_DELETE. + Wed Jul 17 22:34:47 2013 Tanaka Akira <akr@fsij.org> * bignum.c: An static assertion for relation of SIZEOF_LONG and @@ -1007,7 +1007,7 @@ static int delete_if_i(VALUE key, VALUE value, VALUE hash) { if (RTEST(rb_yield_values(2, key, value))) { - rb_hash_delete_key(hash, key); + return ST_DELETE; } return ST_CONTINUE; } |