Project

General

Profile

This project is closed and read-only.

Actions

Backport #2462

closed

Bignum comparison fail [ruby-dev:38672]

Backport #2462: Bignum comparison fail [ruby-dev:38672]

Added by nahi (Hiroshi Nakamura) almost 17 years ago. Updated almost 10 years ago.


Description

=begin
cf. Bug #1645 [ruby-dev:38672]

0% ruby -ve 'p(1.0/0.0 <=> Float::MAX.to_i * 2)'
ruby 1.8.8dev (2009-12-07 revision 25983) [i686-linux]
-e:1: warning: Bignum out of Float range
0

Backport needed?
=end

Updated by nahi (Hiroshi Nakamura) almost 17 years ago Actions #1

=begin
0% ruby -ve 'p(-Float::MAX.to_i * 2 <=> 1.0/0.0)'
ruby 1.8.8dev (2009-12-07 revision 25983) [i686-linux]
-e:1: warning: Bignum out of Float range
0
0% ruby19 -ve 'p(-Float::MAX.to_i * 2 <=> 1.0/0.0)'
ruby 1.9.2dev (2009-12-01 trunk 25970) [i686-linux]
-1

=end

Updated by nobu (Nobuyoshi Nakada) almost 17 years ago Actions #2

  • Assignee set to knu (Akinori MUSHA)

=begin
r23730
=end

Updated by shyouhei (Shyouhei Urabe) about 16 years ago Actions #3

  • Status changed from Open to Assigned

=begin

=end

Updated by knu (Akinori MUSHA) about 15 years ago Actions #4

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r32573.
Hiroshi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


Backport r23730; fixes #2462.

  • numeric.c (flo_cmp): Infinity is greater than any bignum
    number. [ruby-dev:38672]

  • bignum.c (rb_big_cmp): ditto.

Updated by knu (Akinori MUSHA) about 15 years ago Actions #5 [ruby-core:38131]

  • Status changed from Closed to Assigned
  • Assignee changed from knu (Akinori MUSHA) to shyouhei (Shyouhei Urabe)
  • Target version changed from Ruby 1.8.8 to Ruby 1.8.7

Updated by shyouhei (Shyouhei Urabe) almost 10 years ago Actions #6

  • Status changed from Assigned to Closed
Actions

Also available in: PDF Atom