File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
src/libraries/System.Private.CoreLib/src/System Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -275,7 +275,7 @@ public static explicit operator double(UInt128 value)
275275 // for the precision loss that double will have. As such, the lower value effectively drops the
276276 // lowest 24 bits and then or's them back to ensure rounding stays correct.
277277
278- double lower = BitConverter . UInt64BitsToDouble ( TwoPow76Bits | ( ( ulong ) ( value >> 12 ) >> 12 ) | ( ( value . _lower & 0xFFFFFF ) != 0 ? 1UL : 0UL ) ) - TwoPow76 ;
278+ double lower = BitConverter . UInt64BitsToDouble ( TwoPow76Bits | ( ( ulong ) ( value >> 12 ) >> 12 ) | ( value . _lower & 0xFFFFFF ) ) - TwoPow76 ;
279279 double upper = BitConverter . UInt64BitsToDouble ( TwoPow128Bits | ( value . _upper >> 12 ) ) - TwoPow128 ;
280280
281281 return lower + upper ;
You can’t perform that action at this time.
0 commit comments