mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	Initialize vm_throw_data::throw_state as int
As `struct vm_throw_data::throw_state` is initialized as `VALUE`
by rb_imemo_new, extended MSW part is assigned to it on LP64
big-endian platforms.
Fix up 1feda1c2b0
			
			
This commit is contained in:
		
							parent
							
								
									0f9ec4a877
								
							
						
					
					
						commit
						a50c844645
					
				
					 1 changed files with 4 additions and 2 deletions
				
			
		|  | @ -180,9 +180,11 @@ enum vm_regan_acttype { | ||||||
| #define INC_GLOBAL_CONSTANT_STATE() (++ruby_vm_global_constant_state) | #define INC_GLOBAL_CONSTANT_STATE() (++ruby_vm_global_constant_state) | ||||||
| 
 | 
 | ||||||
| static inline struct vm_throw_data * | static inline struct vm_throw_data * | ||||||
| THROW_DATA_NEW(VALUE val, const rb_control_frame_t *cf, VALUE st) | THROW_DATA_NEW(VALUE val, const rb_control_frame_t *cf, int st) | ||||||
| { | { | ||||||
|     return (struct vm_throw_data *)rb_imemo_new(imemo_throw_data, val, (VALUE)cf, st, 0); |     struct vm_throw_data *obj = (struct vm_throw_data *)rb_imemo_new(imemo_throw_data, val, (VALUE)cf, 0, 0); | ||||||
|  |     obj->throw_state = st; | ||||||
|  |     return obj; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| static inline VALUE | static inline VALUE | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Nobuyoshi Nakada
						Nobuyoshi Nakada