ruby-changes:22273
From: nobu <ko1@a...>
Date: Tue, 17 Jan 2012 11:40:58 +0900 (JST)
Subject: [ruby-changes:22273] nobu:r34322 (trunk): * st.c (add_packed_direct): ditto.
nobu 2012-01-17 11:40:42 +0900 (Tue, 17 Jan 2012) New Revision: 34322 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=34322 Log: * st.c (add_packed_direct): ditto. Modified files: trunk/st.c Index: st.c =================================================================== --- st.c (revision 34321) +++ st.c (revision 34322) @@ -477,9 +477,8 @@ PVAL_SET(table, i, value); } else { - st_index_t hash_val = do_hash(key, table); unpack_entries(table); - add_direct(table, key, value, hash_val, hash_val % table->num_bins); + add_direct(table, key, value, key, key % table->num_bins); } } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/