summaryrefslogtreecommitdiff
path: root/bignum.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-06-08 03:30:56 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-06-08 03:30:56 +0000
commit8d5e6a0fc68dbea9b7182d8e8dd9ac4a5b65af57 (patch)
treef4ca463a03a8ac0b5705df03ecf5a17e27de6f14 /bignum.c
parent5ef43814a8d1cf3b3905c70555b09255f37cf1e3 (diff)
* array.c (rb_ary_nitems): add the block feature to Array#nitems.
suggested by Bertram Scharpf <lists@bertram-scharpf.de> in [ruby-talk:134083]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8593 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bignum.c')
-rw-r--r--bignum.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/bignum.c b/bignum.c
index dc5e117445..d15e42f083 100644
--- a/bignum.c
+++ b/bignum.c
@@ -1065,22 +1065,6 @@ rb_big_neg(x)
}
RBIGNUM(z)->sign = !RBIGNUM(z)->sign;
if (RBIGNUM(x)->sign) get2comp(z, Qtrue);
-#if 0
- i = RBIGNUM(x)->len;
- if (RBIGNUM(x)->sign) {
- while (i--) {
- if (ds[i]) nz = Qtrue;
- }
- if (!nz) {
- z = bignew(RBIGNUM(x)->len+1, 1);
- for (i=0; i<RBIGNUM(x)->len; i++) {
- BDIGITS(z)[i] = BDIGITS(x)[i];
- }
- BDIGITS(z)[i] = 1;
- BDIGITS(z)[0] = 0;
- }
- }
-#endif
return bignorm(z);
}