From ee8da4076968101ae765a6f223f94dcec431db08 Mon Sep 17 00:00:00 2001 From: Bogdan Romanyuk Date: Thu, 9 Nov 2023 18:13:11 +0300 Subject: [PATCH] replace deprecated std.math.absCast --- lib/std/os/uefi/protocol/file.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/os/uefi/protocol/file.zig b/lib/std/os/uefi/protocol/file.zig index 5fae1d6d48..9c801b2f4c 100644 --- a/lib/std/os/uefi/protocol/file.zig +++ b/lib/std/os/uefi/protocol/file.zig @@ -107,7 +107,7 @@ pub const File = extern struct { var pos: u64 = undefined; if (.Success != self.getPosition(&pos)) return SeekError.SeekError; const seek_back = offset < 0; - const amt = std.math.absCast(offset); + const amt = @abs(offset); if (seek_back) { pos += amt; } else {