From 402468b2109929779fc0fb59eeb5481cfb5ed44d Mon Sep 17 00:00:00 2001 From: Ruben Dimas <57540512+rdimas-ut@users.noreply.github.com> Date: Tue, 12 Sep 2023 03:24:38 -0400 Subject: [PATCH] std.math.asinh: changed unsigned int to hexadecimal --- lib/std/math/asinh.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/std/math/asinh.zig b/lib/std/math/asinh.zig index c410f82735eb..8abcc055b07f 100644 --- a/lib/std/math/asinh.zig +++ b/lib/std/math/asinh.zig @@ -112,7 +112,7 @@ test "math.asinh64" { test "math.asinh32.special" { try expect(asinh32(0.0) == 0.0); - try expect(@as(u32, @bitCast(asinh32(-0.0))) == @as(u32, 2147483648)); + try expect(@as(u32, @bitCast(asinh32(-0.0))) == @as(u32, 0x80000000)); try expect(math.isPositiveInf(asinh32(math.inf(f32)))); try expect(math.isNegativeInf(asinh32(-math.inf(f32)))); try expect(math.isNan(asinh32(math.nan(f32)))); @@ -120,7 +120,7 @@ test "math.asinh32.special" { test "math.asinh64.special" { try expect(asinh64(0.0) == 0.0); - try expect(@as(u64, @bitCast(asinh64(-0.0))) == @as(u64, 9223372036854775808)); + try expect(@as(u64, @bitCast(asinh64(-0.0))) == @as(u64, 0x8000000000000000)); try expect(math.isPositiveInf(asinh64(math.inf(f64)))); try expect(math.isNegativeInf(asinh64(-math.inf(f64)))); try expect(math.isNan(asinh64(math.nan(f64))));