mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* numeric.c (flo_divmod): Revert the behavior change; do not
suppress an exception when div is NaN or Inf. [ruby-dev:34857] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@16641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
90282e4057
commit
78287c3d2e
2 changed files with 5 additions and 3 deletions
|
|
@ -1,3 +1,8 @@
|
|||
Tue May 27 19:45:20 2008 Akinori MUSHA <knu@iDaemons.org>
|
||||
|
||||
* numeric.c (flo_divmod): Revert the behavior change; do not
|
||||
suppress an exception when div is NaN or Inf. [ruby-dev:34857]
|
||||
|
||||
Tue May 27 19:24:40 2008 Akinori MUSHA <knu@iDaemons.org>
|
||||
|
||||
* enum.c (enum_to_a): Pass arguments through to #each().
|
||||
|
|
|
|||
|
|
@ -761,9 +761,6 @@ flo_divmod(x, y)
|
|||
val = round(div);
|
||||
a = LONG2FIX(val);
|
||||
}
|
||||
else if (isnan(div) || isinf(div)) {
|
||||
a = rb_float_new(div);
|
||||
}
|
||||
else {
|
||||
a = rb_dbl2big(div);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue