mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* st.c (add_packed_direct): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34322 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
270ac46a7c
commit
e8590143a0
1 changed files with 1 additions and 2 deletions
3
st.c
3
st.c
|
@ -477,9 +477,8 @@ add_packed_direct(st_table *table, st_data_t key, st_data_t value)
|
|||
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue