mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* object.c (rb_obj_hash): use LONG2FIX to avoid Bignum allocation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26992 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									d0fa628d06
								
							
						
					
					
						commit
						82488cf2b9
					
				
					 2 changed files with 5 additions and 1 deletions
				
			
		|  | @ -1,3 +1,7 @@ | |||
| Sun Mar 21 09:22:10 2010  Tanaka Akira  <akr@fsij.org> | ||||
| 
 | ||||
| 	* object.c (rb_obj_hash): use LONG2FIX to avoid Bignum allocation. | ||||
| 
 | ||||
| Sat Mar 20 22:51:46 2010  Tanaka Akira  <akr@fsij.org> | ||||
| 
 | ||||
| 	* string.c (rb_str_sum): use UCHAR_MAX. | ||||
|  |  | |||
							
								
								
									
										2
									
								
								object.c
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								object.c
									
										
									
									
									
								
							|  | @ -101,7 +101,7 @@ rb_obj_hash(VALUE obj) | |||
| { | ||||
|     VALUE oid = rb_obj_id(obj); | ||||
|     st_index_t h = rb_hash_end(rb_hash_start(NUM2LONG(oid))); | ||||
|     return LONG2NUM(h); | ||||
|     return LONG2FIX(h); | ||||
| } | ||||
| 
 | ||||
| /*
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 akr
						akr