| ... | @@ -107,7 +107,7 @@ pub const File = extern struct { | ... | @@ -107,7 +107,7 @@ pub const File = extern struct { |
| 107 | var pos: u64 = undefined; | 107 | var pos: u64 = undefined; |
| 108 | if (.Success != self.getPosition(&pos)) return SeekError.SeekError; | 108 | if (.Success != self.getPosition(&pos)) return SeekError.SeekError; |
| 109 | const seek_back = offset < 0; | 109 | const seek_back = offset < 0; |
| 110 | const amt = std.math.absCast(offset); | 110 | const amt = @abs(offset); |
| 111 | if (seek_back) { | 111 | if (seek_back) { |
| 112 | pos += amt; | 112 | pos += amt; |
| 113 | } else { | 113 | } else { |