mirror of
https://github.com/ziglang/zig.git
synced 2026-02-21 16:54:52 +00:00
replace deprecated std.math.absCast
This commit is contained in:
parent
e72049bc61
commit
ee8da40769
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user