summaryrefslogtreecommitdiff
path: root/bignum.c
diff options
context:
space:
mode:
Diffstat (limited to 'bignum.c')
-rw-r--r--bignum.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/bignum.c b/bignum.c
index 6087d3a13b..2ec83b8077 100644
--- a/bignum.c
+++ b/bignum.c
@@ -4747,6 +4747,9 @@ rb_big_and(VALUE x, VALUE y)
hibits1 = hibitsx;
hibits2 = hibitsy;
+ if (!hibits1)
+ l2 = l1;
+
z = bignew(l2, 0);
zds = BDIGITS(z);