Skip to content

Fix comparator of Bignum and Infinity #7563

Merged
enebo merged 2 commits intojruby:masterfrom
k77ch7:ruby-3.1-fix-bignum-comparator
Jan 8, 2023
Merged

Fix comparator of Bignum and Infinity #7563
enebo merged 2 commits intojruby:masterfrom
k77ch7:ruby-3.1-fix-bignum-comparator

Conversation

@k77ch7
Copy link
Contributor

@k77ch7 k77ch7 commented Jan 7, 2023

This fixes float_cmp function to return correct value when float argument is infinity.

The following tests will pass.

  • spec/ruby/core/float/gt_spec.rb
  • spec/ruby/core/float/gte_spec.rb
  • spec/ruby/core/float/lt_spec.rb
  • spec/ruby/core/float/lte_spec.rb

k77ch7 added 2 commits January 7, 2023 15:55
This fixes float_cmp function to return correct value when float argument is infinity.

The following tests will pass.
 * spec/ruby/core/float/gt_spec.rb
 * spec/ruby/core/float/gte_spec.rb
 * spec/ruby/core/float/lt_spec.rb
 * spec/ruby/core/float/lte_spec.rb
@enebo enebo added this to the JRuby 9.4.1.0 milestone Jan 8, 2023
@enebo enebo merged commit 920fc54 into jruby:master Jan 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants