Update core/os/os_darwin.odin
Co-authored-by: Laytan <laytanlaats@hotmail.com>
This commit is contained in:
1 parent
b67817517e
commit
6a6b5061db
1 file changed
+1
-1
@@ -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