| ... | @@ -922,7 +922,7 @@ pub const NativeTargetInfo = struct { | ... | @@ -922,7 +922,7 @@ pub const NativeTargetInfo = struct { |
| 922 | fn preadMin(file: fs.File, buf: []u8, offset: u64, min_read_len: usize) !usize { | 922 | fn preadMin(file: fs.File, buf: []u8, offset: u64, min_read_len: usize) !usize { |
| 923 | var i: usize = 0; | 923 | var i: usize = 0; |
| 924 | while (i < min_read_len) { | 924 | while (i < min_read_len) { |
| 925 | const len = file.pread(buf[i .. buf.len - i], offset + i) catch |err| switch (err) { | 925 | const len = file.pread(buf[i..], offset + i) catch |err| switch (err) { |
| 926 | error.OperationAborted => unreachable, // Windows-only | 926 | error.OperationAborted => unreachable, // Windows-only |
| 927 | error.WouldBlock => unreachable, // Did not request blocking mode | 927 | error.WouldBlock => unreachable, // Did not request blocking mode |
| 928 | error.NotOpenForReading => unreachable, | 928 | error.NotOpenForReading => unreachable, |