From 6a6b5061db061234120c747f23cc0e5422c2af33 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sun, 4 Aug 2024 14:47:35 +0100 Subject: [PATCH] Update core/os/os_darwin.odin Co-authored-by: Laytan --- core/os/os_darwin.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/os/os_darwin.odin b/core/os/os_darwin.odin index 4a317eddf..96ef178bb 100644 --- a/core/os/os_darwin.odin +++ b/core/os/os_darwin.odin @@ -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 }