* st.c (rehash): suppress warnings.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13126 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2007-08-21 04:51:54 +00:00
Родитель 271aaf297e
Коммит 1be6cc2388
1 изменённых файлов: 2 добавлений и 2 удалений

4
st.c
Просмотреть файл

@ -322,7 +322,7 @@ st_add_direct(st_table *table, st_data_t key, st_data_t value)
static void static void
rehash(register st_table *table) rehash(register st_table *table)
{ {
register st_table_entry *ptr, *next, **new_bins; register st_table_entry *ptr, **new_bins;
int i, new_num_bins; int i, new_num_bins;
unsigned int hash_val; unsigned int hash_val;
@ -333,7 +333,7 @@ rehash(register st_table *table)
table->num_bins = new_num_bins; table->num_bins = new_num_bins;
table->bins = new_bins; table->bins = new_bins;
if (ptr = table->head) { if ((ptr = table->head) != 0) {
do { do {
hash_val = ptr->hash % new_num_bins; hash_val = ptr->hash % new_num_bins;
ptr->next = new_bins[hash_val]; ptr->next = new_bins[hash_val];