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:
parent
1a84c57e23
commit
73549c501f
1 changed files with 2 additions and 1 deletions
3
bignum.c
3
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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue