summaryrefslogtreecommitdiff
path: root/bignum.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-04-14 14:35:50 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-04-14 14:35:50 +0000
commit57c75615b9934230e317fd6b84296d514e919a1f (patch)
tree354f33c37a6a692a9e290b31b718428ea3a97ff0 /bignum.c
parente49591745581b0ffaa5bb25e7ec99134d98fd2fa (diff)
000414
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_4@667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bignum.c')
-rw-r--r--bignum.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bignum.c b/bignum.c
index e411e93f1b..c4f181fc70 100644
--- a/bignum.c
+++ b/bignum.c
@@ -69,7 +69,7 @@ rb_big_2comp(x) /* get 2's complement */
for (i=1; i<RBIGNUM(x)->len; i++) {
if (ds[i] != 0) return;
}
- REALLOC_N(BDIGITS(x), USHORT, RBIGNUM(x)->len++);
+ REALLOC_N(RBIGNUM(x)->digits, USHORT, RBIGNUM(x)->len++);
ds = BDIGITS(x);
ds[RBIGNUM(x)->len-1] = 1;
}