aboutsummaryrefslogtreecommitdiffstats
path: root/st.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-03-29 14:50:20 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-03-29 14:50:20 +0000
commit28cc4f75437eec9e76f52723f042445332fd86f5 (patch)
tree2eb33997a9469dcf62a1ccd03f16777f8f22660e /st.c
parent6da92c3e89697e1263248ab56e2ad33381429d6c (diff)
downloadruby-28cc4f75437eec9e76f52723f042445332fd86f5.tar.gz
* st.c (st_update): pass pointer to key to the callback function.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35172 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'st.c')
-rw-r--r--st.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/st.c b/st.c
index bb802cfd22..180e6e75df 100644
--- a/st.c
+++ b/st.c
@@ -841,7 +841,7 @@ st_update(st_table *table, st_data_t key, st_update_callback_func *func, st_data
existing = 1;
}
{
- retval = (*func)(key, &value, arg, existing);
+ retval = (*func)(&key, &value, arg, existing);
if (!table->entries_packed) {
FIND_ENTRY(table, ptr, hash_val, bin_pos);
goto unpacked;
@@ -869,7 +869,7 @@ st_update(st_table *table, st_data_t key, st_update_callback_func *func, st_data
existing = 1;
}
{
- retval = (*func)(ptr->key, &value, arg, existing);
+ retval = (*func)(&key, &value, arg, existing);
unpacked:
switch (retval) {
case ST_CONTINUE: