aboutsummaryrefslogtreecommitdiffstats
path: root/st.c
diff options
context:
space:
mode:
authortarui <tarui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-03-04 11:51:53 +0000
committertarui <tarui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-03-04 11:51:53 +0000
commitde1f3c92e701cdb2752f5079107ad65512e1b43b (patch)
treeaf0ba0c39bb41a0336a3effd1eacf91cf9a4318d /st.c
parent3699a6035e5fbdba96dc43c98d3fbd332510882b (diff)
downloadruby-de1f3c92e701cdb2752f5079107ad65512e1b43b.tar.gz
* st.c (st_foreach): fix type of hash. not st_data_t but st_index_t.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45266 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'st.c')
-rw-r--r--st.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/st.c b/st.c
index 7070c8d0dc..808c30c326 100644
--- a/st.c
+++ b/st.c
@@ -1034,7 +1034,8 @@ st_foreach(st_table *table, int (*func)(ANYARGS), st_data_t arg)
if (table->entries_packed) {
for (i = 0; i < table->real_entries; i++) {
- st_data_t key, val, hash;
+ st_data_t key, val;
+ st_index_t hash;
key = PKEY(table, i);
val = PVAL(table, i);
hash = PHASH(table, i);