Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Urban <lewurm@gmail.com>2019-02-01 11:41:23 +0300
committerBernhard Urban <lewurm@gmail.com>2019-02-01 11:41:23 +0300
commite229c9448cb262ceb230dfab64a8237140c1dc2d (patch)
treeb394cea0678451c9411d0e3fae4f77229baa7227
parent6c9c4d9cffe2031acb788718646fbc013632c9ea (diff)
[Number] make double 0.0 cmp more portable (#30)mono-2018-08
Related: https://github.com/mono/mono/issues/11965
-rw-r--r--src/System.Private.CoreLib/src/System/Number.Unix.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/System.Private.CoreLib/src/System/Number.Unix.cs b/src/System.Private.CoreLib/src/System/Number.Unix.cs
index 19cb02135..ae82d2e66 100644
--- a/src/System.Private.CoreLib/src/System/Number.Unix.cs
+++ b/src/System.Private.CoreLib/src/System/Number.Unix.cs
@@ -38,7 +38,7 @@ namespace System
number.sign = true;
}
- if (value == 0.0)
+ if (BitConverter.DoubleToInt64Bits (value) == 0)
{
for (int j = 0; j < precision; j++)
{