Skip to content

Commit

Permalink
fix pwrite on 32-bit linux
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrk committed May 25, 2020
1 parent a83aab5 commit 7c8d0cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/std/os/linux.zig
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ pub fn ftruncate(fd: i32, length: u64) usize {
}
}

pub fn pwrite(fd: i32, buf: [*]const u8, count: usize, offset: usize) usize {
pub fn pwrite(fd: i32, buf: [*]const u8, count: usize, offset: u64) usize {
if (@hasField(SYS, "pwrite64")) {
if (require_aligned_register_pair) {
return syscall6(
Expand Down

0 comments on commit 7c8d0cc

Please sign in to comment.