diff options
| author | gingerBill <bill@gingerbill.org> | 2022-08-24 12:37:56 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2022-08-24 12:37:56 +0100 |
| commit | cb9e16f4df6e83ec79b374bc14478d312afc6fab (patch) | |
| tree | 902c9f79251526b298f28dbe68ab854c5bfbe65c | |
| parent | 2908923db9d047185de110991cc3347a112c38a6 (diff) | |
Correct syscalls for `linux_i386`
| -rw-r--r-- | core/os/os_linux.odin | 2 | ||||
| -rw-r--r-- | core/sys/unix/syscalls_linux.odin | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/core/os/os_linux.odin b/core/os/os_linux.odin index de3a22187..1064f4aa8 100644 --- a/core/os/os_linux.odin +++ b/core/os/os_linux.odin @@ -311,7 +311,7 @@ _unix_seek :: proc(fd: Handle, offset: i64, whence: int) -> i64 { low := uintptr(offset & 0xFFFFFFFF) high := uintptr(offset >> 32) result: i64 - res := i64(intrinsics.syscall(unix.SYS__llseek, uintptr(fd), high, low, &result, uintptr(whence))) + res := i64(intrinsics.syscall(unix.SYS__llseek, uintptr(fd), high, low, uintptr(&result), uintptr(whence))) return -1 if res < 0 else result } } diff --git a/core/sys/unix/syscalls_linux.odin b/core/sys/unix/syscalls_linux.odin index 48e9b49ab..8ce3ca3cb 100644 --- a/core/sys/unix/syscalls_linux.odin +++ b/core/sys/unix/syscalls_linux.odin @@ -1622,7 +1622,7 @@ sys_lseek :: proc "contextless" (fd: int, offset: i64, whence: int) -> i64 { low := uintptr(offset & 0xFFFFFFFF) high := uintptr(offset >> 32) result: i64 - res := i64(intrinsics.syscall(SYS__llseek, uintptr(fd), high, low, &result, uintptr(whence))) + res := i64(intrinsics.syscall(SYS__llseek, uintptr(fd), high, low, uintptr(&result), uintptr(whence))) return res if res < 0 else result } } |