summaryrefslogtreecommitdiff
path: root/bignum.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-06-23 07:05:59 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-06-23 07:05:59 +0000
commitdc074ec107e288dfc7b40d45afe3009c968021ca (patch)
tree7f28628ea80b0ead6ad861021d3aea398b750256 /bignum.c
parented7cd88b0d7e89ea34aff78903fa83c4c5d6bb32 (diff)
2000-06-23
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_4@776 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bignum.c')
-rw-r--r--bignum.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/bignum.c b/bignum.c
index 12af58e9b8..127f32baba 100644
--- a/bignum.c
+++ b/bignum.c
@@ -882,13 +882,8 @@ bigdivmod(x, y, div, mod, modulo)
RBIGNUM(*mod)->len = ny;
RBIGNUM(*mod)->sign = RBIGNUM(x)->sign;
if (modulo && RBIGNUM(x)->sign != RBIGNUM(y)->sign) {
- long len = ny;
- zds = BDIGITS(*mod);
- while (len && !zds[len]) len--;
- if (len > 0) {
- *mod = bigadd(*mod, y, 1);
- return;
- }
+ *mod = bigadd(*mod, y, 1);
+ return;
}
*mod = bignorm(*mod);
}