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 <bernhard.urban@xamarin.com>2019-01-31 23:06:52 +0300
committerMarek Safar <marek.safar@gmail.com>2019-01-31 23:06:52 +0300
commit1b7d4a1e4bd79305905338827cc41eb8303364f0 (patch)
tree6414e9ff9f23a450ac29cd3eef0eaeb7f20ee104
parentc4ae51646152de0af32b2c85538b6e7317faa7f8 (diff)
[Number] make double 0.0 cmp more portable (#30)
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 39e2dfcb1..6a8ae0296 100644
--- a/src/System.Private.CoreLib/src/System/Number.Unix.cs
+++ b/src/System.Private.CoreLib/src/System/Number.Unix.cs
@@ -33,7 +33,7 @@ namespace System
number.sign = double.IsNegative(value);
*dst = '\0';
- if (value == 0.0)
+ if (BitConverter.DoubleToInt64Bits (value) == 0)
{
for (int j = 0; j < precision; j++)
{