diff options
Diffstat (limited to 'ext/bigdecimal')
-rw-r--r-- | ext/bigdecimal/bigdecimal.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ext/bigdecimal/bigdecimal.c b/ext/bigdecimal/bigdecimal.c index 6a9940d335..0d339c9cfc 100644 --- a/ext/bigdecimal/bigdecimal.c +++ b/ext/bigdecimal/bigdecimal.c @@ -3788,10 +3788,9 @@ VpMidRound(Real *y, int f, int nf) } for(i=0;i<=n;++i) div *= 10; if(div>=BASE) { - y->frac[ix] = 0; if(ix) { - VpNmlz(y); - VpRdup(y,0); + y->frac[ix] = 0; + VpRdup(y,ix); } else { S_INT s = VpGetSign(y); VpSetOne(y); |