From 84a636fc92b1f3cbb665195dbfb6a3cc27249aa8 Mon Sep 17 00:00:00 2001 From: matz Date: Fri, 22 Jun 2001 08:37:01 +0000 Subject: [PATCH] * st.c (new_size): a bug in bin_pos calculation git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1534 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- st.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/st.c b/st.c index fcb20ed41c..849ad1a3bf 100644 --- a/st.c +++ b/st.c @@ -65,7 +65,7 @@ static void rehash(); #define EQUAL(table,x,y) ((x)==(y) || (*table->type->compare)((x),(y)) == 0) #define do_hash(key,table) (unsigned int)(*(table)->type->hash)((key)) -#define do_hash_bin(key,table) (do_hash(key, table)&(table)->num_bins) +#define do_hash_bin(key,table) (do_hash(key, table)%(table)->num_bins) /* * MINSIZE is the minimum size of a dictionary.