mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/bigdecimal/bigdecimal.c (BigDecimal_DoDivmod): get red of
floating point exception. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6c1c35db17
commit
7a4621eecf
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Thu Feb 4 03:00:59 2010 Yusuke Endoh <mame@tsg.ne.jp>
|
||||
|
||||
* ext/bigdecimal/bigdecimal.c (BigDecimal_DoDivmod): get red of
|
||||
floating point exception.
|
||||
|
||||
Thu Feb 4 01:24:01 2010 Yusuke Endoh <mame@tsg.ne.jp>
|
||||
|
||||
* ext/bigdecimal/bigdecimal.c (BigDecimal_DoDivmod): fix infinity
|
||||
|
|
|
@ -958,7 +958,6 @@ BigDecimal_DoDivmod(VALUE self, VALUE r, Real **div, Real **mod)
|
|||
}
|
||||
if(VpIsInf(b)) {
|
||||
GUARD_OBJ(d,VpCreateRbObject(1, "0"));
|
||||
VpSetSign(d,(S_INT)(VpGetSign(a) == VpGetSign(b) ? 1 : -1));
|
||||
*div = d;
|
||||
*mod = a;
|
||||
return Qtrue;
|
||||
|
|
Loading…
Reference in a new issue