diff options
| author | shigek <shigek@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-09-03 10:47:44 +0000 |
|---|---|---|
| committer | shigek <shigek@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-09-03 10:47:44 +0000 |
| commit | ceabb11eb37b55f6bd30eddfe1d607cb385c72ed (patch) | |
| tree | a8598e7c1f001061ae3137f25267d30ae86ba9a6 /ext/bigdecimal | |
| parent | 9c96d90fd01b2a6b3cdfc0de73c453165b665f6b (diff) | |
| download | ruby-ceabb11eb37b55f6bd30eddfe1d607cb385c72ed.tar.gz ruby-ceabb11eb37b55f6bd30eddfe1d607cb385c72ed.tar.xz ruby-ceabb11eb37b55f6bd30eddfe1d607cb385c72ed.zip | |
Bug in mult method fixed.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4483 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/bigdecimal')
| -rw-r--r-- | ext/bigdecimal/bigdecimal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/bigdecimal/bigdecimal.c b/ext/bigdecimal/bigdecimal.c index 75db02c3b..58506d6d5 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); |
