[ruby-cvs:63638] nobu:r56473 (trunk): hash.c: fix Hash#compact! return value

nobu at ruby-lang.org nobu at ruby-lang.org
Sat Oct 22 18:52:35 JST 2016


nobu	2016-10-22 18:52:35 +0900 (Sat, 22 Oct 2016)

  New Revision: 56473

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=56473

  Log:
    hash.c: fix Hash#compact! return value
    
    * hash.c (rb_hash_compact_bang): should return nil if no elements
      is deleted.  [ruby-core:77709] [Bug #12863]

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


More information about the ruby-cvs mailing list