summaryrefslogtreecommitdiffstats
path: root/st.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-08-21 04:51:54 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-08-21 04:51:54 +0000
commitd62bed78773db2dc0c3b735f3153f30693947e45 (patch)
treecb0d530f0b45a8f22ef6d4be001cdfdd3b635099 /st.c
parent76d73b5e3686123dd686833abf17628a28509a3d (diff)
downloadruby-d62bed78773db2dc0c3b735f3153f30693947e45.tar.gz
ruby-d62bed78773db2dc0c3b735f3153f30693947e45.tar.xz
ruby-d62bed78773db2dc0c3b735f3153f30693947e45.zip
* st.c (rehash): suppress warnings.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13126 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 5dcefc1bf..ce2b7eecc 100644
--- a/st.c
+++ b/st.c
@@ -322,7 +322,7 @@ st_add_direct(st_table *table, st_data_t key, st_data_t value)
static void
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;
unsigned int hash_val;
@@ -333,7 +333,7 @@ rehash(register st_table *table)
table->num_bins = new_num_bins;
table->bins = new_bins;
- if (ptr = table->head) {
+ if ((ptr = table->head) != 0) {
do {
hash_val = ptr->hash % new_num_bins;
ptr->next = new_bins[hash_val];