aboutsummaryrefslogtreecommitdiffstats
path: root/st.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-01-17 02:40:42 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-01-17 02:40:42 +0000
commite8590143a0606ce2f8f067ada24e4af4558deaf2 (patch)
tree4d6c9539b7aa8f22ca8f8600ab9104718f05d106 /st.c
parent270ac46a7c93019e13a51f3410c4a54782a8135f (diff)
downloadruby-e8590143a0606ce2f8f067ada24e4af4558deaf2.tar.gz
* st.c (add_packed_direct): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34322 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'st.c')
-rw-r--r--st.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/st.c b/st.c
index 3fa96dedb6..d428530fb3 100644
--- a/st.c
+++ b/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);
}
}