diff options
author | tarui <tarui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-03-04 11:51:53 +0000 |
---|---|---|
committer | tarui <tarui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-03-04 11:51:53 +0000 |
commit | de1f3c92e701cdb2752f5079107ad65512e1b43b (patch) | |
tree | af0ba0c39bb41a0336a3effd1eacf91cf9a4318d | |
parent | 3699a6035e5fbdba96dc43c98d3fbd332510882b (diff) | |
download | ruby-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
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | st.c | 3 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Tue Mar 4 20:50:59 2014 Masaya Tarui <tarui@ruby-lang.org> + + * st.c (st_foreach): fix type of hash. not st_data_t but st_index_t. + Tue Mar 4 19:41:40 2014 Tanaka Akira <akr@fsij.org> * Makefile.in: ".DEFAULT" target removed because it is not for @@ -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); |