diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-05-01 00:32:56 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-05-01 00:32:56 +0000 |
commit | 75e3c77de48657fb438180b7ae2cc8f0470ec188 (patch) | |
tree | 5ee29e2883b9598ea045c5ca693a0b9d966daa33 /regint.h | |
parent | dcd38d4b184f97a25a359d28d93d8f6ea007957d (diff) | |
download | ruby-75e3c77de48657fb438180b7ae2cc8f0470ec188.tar.gz |
rational.c: canonicalization case
* rational.c (float_numerator, float_denominator): fix for
canonicalization case where `Float#to_r` could return an Integer
not a Rational. although mathn.rb has been removed in the
trunk, fix for the backport purpose.
[ruby-core:80942] [Bug #13528]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58523 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'regint.h')
0 files changed, 0 insertions, 0 deletions