summaryrefslogtreecommitdiff
path: root/st.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-03-31 01:01:41 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-03-31 01:01:41 +0000
commit44e6f5a1bb3eb37d37d9d8e14e970fa05e1a0724 (patch)
tree98c04531fa177f5a0632b2eeec2facfa5b2331e3 /st.c
parentd481e34e3c1a69b4c2142d2e7ac64ff2f962efe4 (diff)
* st.c (st_delete): use real_entries in st_delete for packed tables
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'st.c')
-rw-r--r--st.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/st.c b/st.c
index af2dfd9e82..e46fcaf268 100644
--- a/st.c
+++ b/st.c
@@ -731,7 +731,7 @@ st_delete(register st_table *table, register st_data_t *key, st_data_t *value)
if (table->entries_packed) {
st_index_t i = find_packed_index(table, hash_val, *key);
- if (i < table->num_entries) {
+ if (i < table->real_entries) {
if (value != 0) *value = PVAL(table, i);
*key = PKEY(table, i);
remove_packed_entry(table, i);