diff options
author | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-11-16 03:34:53 +0000 |
---|---|---|
committer | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-11-16 03:34:53 +0000 |
commit | 73549c501f9ebb741732b91d0ccdc255e6960a3b (patch) | |
tree | 522e11f2a6b79a63ff01faa00d97a8f383ad6953 /bignum.c | |
parent | 1a84c57e23d7f30943e60b5f5d1709a98df26ccd (diff) |
bignum.c: fix bug in big2dbl()
I was wrong at r65753.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65755 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bignum.c')
-rw-r--r-- | bignum.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -5283,7 +5283,8 @@ big2dbl(VALUE x) mask <<= bits; bit <<= bits; dl &= mask; - dl |= bit; + dl += bit; + dl = BIGLO(dl); if (!dl) d += 1; } } |