aboutsummaryrefslogtreecommitdiff
path: root/core/prof
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-08-04 10:51:08 +0100
committergingerBill <bill@gingerbill.org>2024-08-04 10:51:08 +0100
commite60951a902976acfef74b863463bb116858366c5 (patch)
tree0bfb984d7a1f788223a230918cd3ab2017fd0752 /core/prof
parent71932628cc3c1957a98e998740b059df9b7dd392 (diff)
Begin converting `os.Errno` to be a `nil`-able type as a transition period
Diffstat (limited to 'core/prof')
-rw-r--r--core/prof/spall/spall_unix.odin4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/prof/spall/spall_unix.odin b/core/prof/spall/spall_unix.odin
index e6199d86b..e6ba7ecde 100644
--- a/core/prof/spall/spall_unix.odin
+++ b/core/prof/spall/spall_unix.odin
@@ -23,8 +23,8 @@ foreign libc {
}
@(no_instrumentation)
-get_last_error :: proc "contextless" () -> int {
- return int(__error()^)
+get_last_error :: proc "contextless" () -> os.Platform_Error {
+ return os.Platform_Error(__error()^)
}
MAX_RW :: 0x7fffffff