[ruby-cvs:51282] nobu:r44137 (trunk): hash.c: reject should return a plain hash

nobu at ruby-lang.org nobu at ruby-lang.org
Wed Dec 11 16:01:30 JST 2013


nobu	2013-12-11 16:01:29 +0900 (Wed, 11 Dec 2013)

  New Revision: 44137

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

  Log:
    hash.c: reject should return a plain hash
    
    * hash.c (rb_hash_reject): return a plain hash, without copying
      the class, default value, instance variables, and taintedness.
      they had been copied just by accident.
      [ruby-core:59045] [Bug #9223]

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


More information about the ruby-cvs mailing list