1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
shyouhei 2018-11-16 03:34:53 +00:00
parent 1a84c57e23
commit 73549c501f

View file

@ -5283,7 +5283,8 @@ big2dbl(VALUE x)
mask <<= bits;
bit <<= bits;
dl &= mask;
dl |= bit;
dl += bit;
dl = BIGLO(dl);
if (!dl) d += 1;
}
}