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;