summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshigek <shigek@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-09-03 10:47:44 +0000
committershigek <shigek@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-09-03 10:47:44 +0000
commitda24c258c351372f0f065fab975794cbad1d4f19 (patch)
treea8598e7c1f001061ae3137f25267d30ae86ba9a6
parent28e962d92cdaa1ec8651a48d09ea318ddaae8368 (diff)
Bug in mult method fixed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4483 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ext/bigdecimal/bigdecimal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/bigdecimal/bigdecimal.c b/ext/bigdecimal/bigdecimal.c
index 75db02c3b7..58506d6d59 100644
--- a/ext/bigdecimal/bigdecimal.c
+++ b/ext/bigdecimal/bigdecimal.c
@@ -858,7 +858,7 @@ BigDecimal_mult2(VALUE self, VALUE b, VALUE n)
ENTER(2);
Real *cv;
U_LONG mx = (U_LONG)GetPositiveInt(n);
- if(mx==0) BigDecimal_mult(self,b);
+ if(mx==0) return BigDecimal_mult(self,b);
else {
U_LONG pl = VpSetPrecLimit(0);
VALUE c = BigDecimal_mult(self,b);