mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	iseq.c: use lvar index
* iseq.c (iseq_data_to_ary): use local variable indexes for hidden variable instead of meaningless ID values. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									7ec4604700
								
							
						
					
					
						commit
						a81979ec55
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		
							
								
								
									
										2
									
								
								iseq.c
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								iseq.c
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -1721,7 +1721,7 @@ iseq_data_to_ary(rb_iseq_t *iseq)
 | 
			
		|||
		rb_ary_push(locals, ID2SYM(lid));
 | 
			
		||||
	    }
 | 
			
		||||
	    else { /* hidden variable from id_internal() */
 | 
			
		||||
		rb_ary_push(locals, ULONG2NUM(lid));
 | 
			
		||||
		rb_ary_push(locals, ULONG2NUM(iseq->local_table_size-i+1));
 | 
			
		||||
	    }
 | 
			
		||||
	}
 | 
			
		||||
	else {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue