authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-05-25 19:59:39-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-05-25 19:59:39-04:00
log7c8d0cc67876ce2059a8a7b2bc35f4948a2e42c8
tree554ce56f894c66013dc8917f8dd0ee58ad77d025
parenta83aab5209a040dc8718c71de87a1fa72967ba9d

fix pwrite on 32-bit linux


1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/os/linux.zig+1-1
......@@ -417,7 +417,7 @@ pub fn ftruncate(fd: i32, length: u64) usize {
417417 }
418418}
419419
420pub fn pwrite(fd: i32, buf: [*]const u8, count: usize, offset: usize) usize {
420pub fn pwrite(fd: i32, buf: [*]const u8, count: usize, offset: u64) usize {
421421 if (@hasField(SYS, "pwrite64")) {
422422 if (require_aligned_register_pair) {
423423 return syscall6(