diff --git a/ChangeLog b/ChangeLog index 88bf60d648..53184d8099 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Feb 4 03:00:59 2010 Yusuke Endoh + + * ext/bigdecimal/bigdecimal.c (BigDecimal_DoDivmod): get red of + floating point exception. + Thu Feb 4 01:24:01 2010 Yusuke Endoh * ext/bigdecimal/bigdecimal.c (BigDecimal_DoDivmod): fix infinity diff --git a/ext/bigdecimal/bigdecimal.c b/ext/bigdecimal/bigdecimal.c index 5450f7594a..8e85fdf1f8 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;