From 7ee015c84f12fee15ba12212c04817e2bab856d3 Mon Sep 17 00:00:00 2001 From: data-man Date: Tue, 18 May 2021 01:14:06 +0500 Subject: [PATCH] Fix casts in math module --- resources/lib/std/math.c3 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/lib/std/math.c3 b/resources/lib/std/math.c3 index 798cd4156..c23957a0f 100644 --- a/resources/lib/std/math.c3 +++ b/resources/lib/std/math.c3 @@ -48,9 +48,9 @@ public func double log10(double x) x = u.f; hx += 0x3ff00000 - 0x3fe6a09e; - k += (int)(hx >> 20) - 0x3ff; + k += cast(hx >> 20 as int) - 0x3ff; hx = (hx & 0x000fffff) + 0x3fe6a09e; - u.i = (ulong)(hx) << 32 | (u.i & 0xffffffff); + u.i = cast(hx as ulong) << 32 | (u.i & 0xffffffff); x = u.f;