replace deprecated std.math.absCast

This commit is contained in:
Bogdan Romanyuk 2023-11-09 18:13:11 +03:00 committed by Veikka Tuominen
parent e72049bc61
commit ee8da40769

View File

@ -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 {