mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* 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
This commit is contained in:
		
							parent
							
								
									6f6ae5db94
								
							
						
					
					
						commit
						84a636fc92
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		
							
								
								
									
										2
									
								
								st.c
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								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.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue