Backport #2462
Bignum comparison fail [ruby-dev:38672]
| Status: | Assigned | Start date: | 12/08/2009 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | % Done: | 100% |
||
| Category: | core | |||
| Target version: | Ruby 1.8.7 |
Description
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?
Associated revisions
History
Updated by nahi (Hiroshi Nakamura) over 2 years ago
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
Updated by shyouhei (Shyouhei Urabe) over 1 year ago
- Status changed from Open to Assigned
Updated by knu (Akinori MUSHA) 10 months 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 #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) 10 months 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