[前][次][番号順一覧][スレッド一覧]

ruby-changes:29977

From: glass <ko1@a...>
Date: Wed, 17 Jul 2013 23:00:05 +0900 (JST)
Subject: [ruby-changes:29977] glass:r42029 (trunk): * hash.c (delete_if_i): use ST_DELETE.

glass	2013-07-17 22:59:53 +0900 (Wed, 17 Jul 2013)

  New Revision: 42029

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=42029

  Log:
    * hash.c (delete_if_i): use ST_DELETE.

  Modified files:
    trunk/ChangeLog
    trunk/hash.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 42028)
+++ ChangeLog	(revision 42029)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Jul 17 22:57:40 2013  Masaki Matsushita  <glass.saga@g...>
+
+	* hash.c (delete_if_i): use ST_DELETE.
+
 Wed Jul 17 22:34:47 2013  Tanaka Akira  <akr@f...>
 
 	* bignum.c: An static assertion for relation of SIZEOF_LONG and
Index: hash.c
===================================================================
--- hash.c	(revision 42028)
+++ hash.c	(revision 42029)
@@ -1007,7 +1007,7 @@ static int https://github.com/ruby/ruby/blob/trunk/hash.c#L1007
 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;
 }

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]