mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-29 08:41:48 -07:00
Update core/os/os_darwin.odin
Co-authored-by: Laytan <laytanlaats@hotmail.com>
This commit is contained in:
@@ -785,7 +785,7 @@ seek :: proc(fd: Handle, offset: i64, whence: int) -> (i64, Error) {
|
||||
|
||||
final_offset := i64(_unix_lseek(fd, int(offset), c.int(whence)))
|
||||
if final_offset == -1 {
|
||||
return 0, Platform_Error.EPERM
|
||||
return 0, get_last_error()
|
||||
}
|
||||
return final_offset, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user