From ae186433cc1b1452b1964e657b81a1f05c2ade71 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Wed, 15 Dec 2021 14:41:30 -0500 Subject: [PATCH] Negative zero fix --- BeefLibs/corlib/src/Double.bf | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/BeefLibs/corlib/src/Double.bf b/BeefLibs/corlib/src/Double.bf index 63176ab3..5c75b453 100644 --- a/BeefLibs/corlib/src/Double.bf +++ b/BeefLibs/corlib/src/Double.bf @@ -21,8 +21,7 @@ namespace System public const double NegativeInfinity = (double)(- 1.0 / (double)(0.0)); public const double PositiveInfinity = (double)1.0 / (double)(0.0); public const double NaN = (double)0.0 / (double)0.0; - - static double NegativeZero = BitConverter.Convert(0x8000000000000000UL); + public const double NegativeZero = -0.0; public static int operator<=>(Double a, Double b) {