shithub: mc

Download patch

ref: efe187d5a1f48ec5ce18def10bab78c8d23daae6
parent: 0a90d87daea7bf0a97dfc7d65cc1ef0ae9806c30
author: S. Gilles <[email protected]>
date: Thu Jun 28 08:33:15 EDT 2018

Initialize variables (fallout from upstream merge?).

--- a/lib/math/sin-impl.myr
+++ b/lib/math/sin-impl.myr
@@ -635,10 +635,10 @@
 	   with a heck of a lot of precision.
 	 */
 	var j : uint64 = (e - 25 : uint64) / 50
-	var xa : flt64, xb : flt64, xc : flt64
-	var a1 : flt64, a2 : flt64, a3 : flt64
-	var b1 : flt64, b2 : flt64, b3 : flt64
-	var c1 : flt64, c2 : flt64, c3 : flt64
+	var xa : flt64 = 0.0, xb : flt64 = 0.0, xc : flt64 = 0.0
+	var a1 : flt64 = 0.0, a2 : flt64 = 0.0, a3 : flt64 = 0.0
+	var b1 : flt64 = 0.0, b2 : flt64 = 0.0, b3 : flt64 = 0.0
+	var c1 : flt64 = 0.0, c2 : flt64 = 0.0, c3 : flt64 = 0.0
 	var u1 : uint64, u2 : uint64, u3 : uint64
 	var xcur = x
 
--- a/lib/math/test/sin-impl.myr
+++ b/lib/math/test/sin-impl.myr
@@ -72,6 +72,8 @@
 		(0x0000000000000000, 0x0000000000000000, 0x3ff0000000000000),
 		(0x4100000000000000, 0xbfeff8bd7b10d6b0, 0x3fa58ced65ec8b50),
 		(0x4b01000000000000, 0xbfe3e9527dc75f12, 0x3fe90cf80997c963),
+		(0x4b11000000000000, 0xbfef2cb48ed49aa6, 0x3fcce246843789ad),
+		//(0x020400000a0c0000, 0x020400000a0c0000, 0x3ff0000000000000),
 	][:]
 
 	for (x, ys, yc) : inputs