Project

General

Profile

Actions

Backport #2462

closed

Bignum comparison fail [ruby-dev:38672]

Added by nahi (Hiroshi Nakamura) over 14 years ago. Updated over 7 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

Actions #1

Updated by nahi (Hiroshi Nakamura) over 14 years ago

=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

Actions #2

Updated by nobu (Nobuyoshi Nakada) over 14 years ago

  • Assignee set to knu (Akinori MUSHA)

=begin
r23730
=end

Actions #3

Updated by shyouhei (Shyouhei Urabe) over 13 years ago

  • Status changed from Open to Assigned

=begin

=end

Actions #4

Updated by knu (Akinori MUSHA) almost 13 years ago

  • 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 [ruby-dev:38672] (Closed)" href="/issues/2462">#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) almost 13 years ago

  • 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
Actions #6

Updated by shyouhei (Shyouhei Urabe) over 7 years ago

  • Status changed from Assigned to Closed
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0