ruby-changes:33187
From: tarui <ko1@a...>
Date: Tue, 4 Mar 2014 20:51:59 +0900 (JST)
Subject: [ruby-changes:33187] tarui:r45266 (trunk): * st.c (st_foreach): fix type of hash. not st_data_t but st_index_t.
tarui 2014-03-04 20:51:53 +0900 (Tue, 04 Mar 2014) New Revision: 45266 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45266 Log: * st.c (st_foreach): fix type of hash. not st_data_t but st_index_t. Modified files: trunk/ChangeLog trunk/st.c Index: ChangeLog =================================================================== --- ChangeLog (revision 45265) +++ ChangeLog (revision 45266) @@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Tue Mar 4 20:50:59 2014 Masaya Tarui <tarui@r...> + + * 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@f...> * Makefile.in: ".DEFAULT" target removed because it is not for Index: st.c =================================================================== --- st.c (revision 45265) +++ st.c (revision 45266) @@ -1034,7 +1034,8 @@ st_foreach(st_table *table, int (*func)( https://github.com/ruby/ruby/blob/trunk/st.c#L1034 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); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/