mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* eval.c (proc_invoke): use volatile tmp' rather than args'.
				
					
				
			[ruby-core:03882] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7457 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									0e7aaca003
								
							
						
					
					
						commit
						e237540e7b
					
				
					 2 changed files with 9 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -1,3 +1,8 @@
 | 
			
		|||
Sat Dec  4 14:54:52 2004  WATANABE Hirofumi  <eban@ruby-lang.org>
 | 
			
		||||
 | 
			
		||||
	* eval.c (proc_invoke): use volatile `tmp' rather than `args'.
 | 
			
		||||
	  [ruby-core:03882]
 | 
			
		||||
 | 
			
		||||
Sat Dec  4 14:28:56 2004  Dave Thomas  <dave@pragprog.com>
 | 
			
		||||
 | 
			
		||||
	* lib/rdoc/code_objects.rb (RDoc::Context::Section::set_comment):
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										7
									
								
								eval.c
									
										
									
									
									
								
							
							
						
						
									
										7
									
								
								eval.c
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -8139,6 +8139,7 @@ proc_invoke(proc, args, self, klass)
 | 
			
		|||
    volatile int safe = ruby_safe_level;
 | 
			
		||||
    volatile VALUE old_wrapper = ruby_wrapper;
 | 
			
		||||
    volatile int pcall, avalue = Qtrue;
 | 
			
		||||
    volatile VALUE tmp = args;
 | 
			
		||||
 | 
			
		||||
    if (rb_block_given_p() && ruby_frame->last_func) {
 | 
			
		||||
	if (klass != ruby_frame->last_class)
 | 
			
		||||
| 
						 | 
				
			
			@ -8163,9 +8164,9 @@ proc_invoke(proc, args, self, klass)
 | 
			
		|||
    _block = *data;
 | 
			
		||||
    if (self != Qundef) _block.frame.self = self;
 | 
			
		||||
    if (klass) _block.frame.last_class = klass;
 | 
			
		||||
    _block.frame.argc = RARRAY(args)->len;
 | 
			
		||||
    _block.frame.argv = ALLOCA_N(VALUE, RARRAY(args)->len);
 | 
			
		||||
    MEMCPY(_block.frame.argv, RARRAY(args)->ptr, VALUE, RARRAY(args)->len);
 | 
			
		||||
    _block.frame.argc = RARRAY(tmp)->len;
 | 
			
		||||
    _block.frame.argv = ALLOCA_N(VALUE, RARRAY(tmp)->len);
 | 
			
		||||
    MEMCPY(_block.frame.argv, RARRAY(tmp)->ptr, VALUE, RARRAY(tmp)->len);
 | 
			
		||||
    _block.frame.flags = FRAME_ALLOCA;
 | 
			
		||||
    ruby_block = &_block;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue