Commit ee8da40769

Bogdan Romanyuk <wrongnull@gmail.com>
2023-11-09 16:13:11
replace deprecated std.math.absCast
1 parent e72049b
Changed files (1)
lib
std
os
uefi
protocol
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 {