[ruby-cvs:53868] nobu:r46722 (trunk): st.c: re-calc hash_val before adding

nobu at ruby-lang.org nobu at ruby-lang.org
Sun Jul 6 23:43:22 JST 2014


nobu	2014-07-06 23:42:57 +0900 (Sun, 06 Jul 2014)

  New Revision: 46722

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

  Log:
    st.c: re-calc hash_val before adding
    
    * st.c (st_update): re-calculate hash_val before adding if key was
      changed, otherwise cannot access the newly added element if it
      has different hash value.

  Modified files:
    trunk/st.c


More information about the ruby-cvs mailing list