Update core/os/os_darwin.odin

Co-authored-by: Laytan <laytanlaats@hotmail.com>
This commit is contained in:
gingerBill
2024-08-04 14:47:35 +01:00
committed by GitHub
parent b67817517e
commit 6a6b5061db
+1 -1
View File
@@ -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
}