From 888014c83724008194b4234d96dc3af3c86dc38a Mon Sep 17 00:00:00 2001 From: mihael Date: Wed, 11 Mar 2026 17:58:42 +0100 Subject: [PATCH] `libzigc`: `std.math` -> `math` Remove the two uses of `std.math` since that namespace is already assigned to the `math` constant and used as such. --- lib/c/math.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/c/math.zig b/lib/c/math.zig index 501df810d693e43c2330238dca53e50044c4da0f..15340ef6225ea33f3f44fc5cbf5a522d52a1598b 100644 --- a/lib/c/math.zig +++ b/lib/c/math.zig @@ -70,7 +70,7 @@ fn acos(x: f64) callconv(.c) f64 { } fn acosf(x: f32) callconv(.c) f32 { - return std.math.acos(x); + return math.acos(x); } fn atan(x: f64) callconv(.c) f64 { @@ -177,7 +177,7 @@ fn pow10f(x: f32) callconv(.c) f32 { } fn rint(x: f64) callconv(.c) f64 { - const toint: f64 = 1.0 / @as(f64, std.math.floatEps(f64)); + const toint: f64 = 1.0 / @as(f64, math.floatEps(f64)); const a: u64 = @bitCast(x); const e = a >> 52 & 0x7ff; const s = a >> 63; -- 2.54.0