summaryrefslogtreecommitdiff
path: root/ext/bigdecimal
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-02-03 18:02:47 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-02-03 18:02:47 +0000
commit7a4621eecff07d1d82c0f17442491198749223c3 (patch)
treed38f81e29dc34cc609355446d75c3f5ccfb7e090 /ext/bigdecimal
parent6c1c35db17e55adc479db493cd85e1ad8afa8e31 (diff)
* 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
Diffstat (limited to 'ext/bigdecimal')
-rw-r--r--ext/bigdecimal/bigdecimal.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/ext/bigdecimal/bigdecimal.c b/ext/bigdecimal/bigdecimal.c
index 5450f7594ab..8e85fdf1f8f 100644
--- a/ext/bigdecimal/bigdecimal.c
+++ b/ext/bigdecimal/bigdecimal.c
@@ -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;