summaryrefslogtreecommitdiff
path: root/bignum.c
diff options
context:
space:
mode:
Diffstat (limited to 'bignum.c')
-rw-r--r--bignum.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bignum.c b/bignum.c
index 8497ae27ee..b3046f2017 100644
--- a/bignum.c
+++ b/bignum.c
@@ -5283,7 +5283,8 @@ big2dbl(VALUE x)
mask <<= bits;
bit <<= bits;
dl &= mask;
- dl |= bit;
+ dl += bit;
+ dl = BIGLO(dl);
if (!dl) d += 1;
}
}