Skip to content
This repository was archived by the owner on Jan 14, 2021. It is now read-only.

Commit e229c94

Browse files
committed
[Number] make double 0.0 cmp more portable (#30)
Related: mono/mono#11965
1 parent 6c9c4d9 commit e229c94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/System.Private.CoreLib/src/System/Number.Unix.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ private static unsafe void DoubleToNumber(double value, int precision, ref Numbe
3838
number.sign = true;
3939
}
4040

41-
if (value == 0.0)
41+
if (BitConverter.DoubleToInt64Bits (value) == 0)
4242
{
4343
for (int j = 0; j < precision; j++)
4444
{

0 commit comments

Comments
 (0)