mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	Fix ArithmeticSequence#last and ArithmeticSequence#each for non-integer sequences (#3870)
[Bug #17218] [ruby-core:100312]
This commit is contained in:
		
							parent
							
								
									cacdf2681d
								
							
						
					
					
						commit
						fad3023e94
					
				
				
				Notes:
				
					git
				
				2020-12-09 18:49:23 +09:00 
				
			
			Merged-By: mrkn <mrkn@ruby-lang.org>
					 7 changed files with 156 additions and 40 deletions
				
			
		|  | @ -55,6 +55,7 @@ VALUE rb_float_uminus(VALUE num); | |||
| VALUE rb_int_plus(VALUE x, VALUE y); | ||||
| VALUE rb_float_plus(VALUE x, VALUE y); | ||||
| VALUE rb_int_minus(VALUE x, VALUE y); | ||||
| VALUE rb_float_minus(VALUE x, VALUE y); | ||||
| VALUE rb_int_mul(VALUE x, VALUE y); | ||||
| VALUE rb_float_mul(VALUE x, VALUE y); | ||||
| VALUE rb_float_div(VALUE x, VALUE y); | ||||
|  | @ -79,6 +80,7 @@ int rb_int_positive_p(VALUE num); | |||
| int rb_int_negative_p(VALUE num); | ||||
| VALUE rb_num_pow(VALUE x, VALUE y); | ||||
| VALUE rb_float_ceil(VALUE num, int ndigits); | ||||
| VALUE rb_float_floor(VALUE x, int ndigits); | ||||
| VALUE rb_float_abs(VALUE flt); | ||||
| static inline VALUE rb_num_compare_with_zero(VALUE num, ID mid); | ||||
| static inline int rb_num_positive_int_p(VALUE num); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Kenta Murata
						Kenta Murata