[ruby-cvs:51192] nobu:r44047 (trunk): hash.c: rb_hash_reject without dup

nobu at ruby-lang.org nobu at ruby-lang.org
Sat Dec 7 11:16:05 JST 2013


nobu	2013-12-07 11:16:04 +0900 (Sat, 07 Dec 2013)

  New Revision: 44047

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

  Log:
    hash.c: rb_hash_reject without dup
    
    * hash.c (rb_hash_reject): copy unrejected elements only to new hash,
      so that the change on the original receiver can affect.
      [ruby-core:58914] [Bug #9223]

  Modified files:
    trunk/ChangeLog
    trunk/hash.c
    trunk/test/ruby/test_enumerator.rb


More information about the ruby-cvs mailing list