mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-07 16:18:52 +00: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)))
|
final_offset := i64(_unix_lseek(fd, int(offset), c.int(whence)))
|
||||||
if final_offset == -1 {
|
if final_offset == -1 {
|
||||||
return 0, Platform_Error.EPERM
|
return 0, get_last_error()
|
||||||
}
|
}
|
||||||
return final_offset, nil
|
return final_offset, nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user