ruby-changes:53539
From: shyouhei <ko1@a...>
Date: Fri, 16 Nov 2018 12:35:00 +0900 (JST)
Subject: [ruby-changes:53539] shyouhei:r65755 (trunk): bignum.c: fix bug in big2dbl()
shyouhei 2018-11-16 12:34:53 +0900 (Fri, 16 Nov 2018) New Revision: 65755 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65755 Log: bignum.c: fix bug in big2dbl() I was wrong at r65753. Modified files: trunk/bignum.c Index: bignum.c =================================================================== --- bignum.c (revision 65754) +++ bignum.c (revision 65755) @@ -5283,7 +5283,8 @@ big2dbl(VALUE x) https://github.com/ruby/ruby/blob/trunk/bignum.c#L5283 mask <<= bits; bit <<= bits; dl &= mask; - dl |= bit; + dl += bit; + dl = BIGLO(dl); if (!dl) d += 1; } } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/