diff options
| author | gingerBill <bill@gingerbill.org> | 2024-08-04 11:05:30 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-08-04 11:05:30 +0100 |
| commit | 9f9abb8fb30cb184771094b8cf44346147a6c2fc (patch) | |
| tree | 8cd9466086225632a9854baca3aadd50ac24d9dc /core/prof | |
| parent | e60951a902976acfef74b863463bb116858366c5 (diff) | |
Use `union #shared_nil` for `os.Error`
Diffstat (limited to 'core/prof')
| -rw-r--r-- | core/prof/spall/spall_windows.odin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/prof/spall/spall_windows.odin b/core/prof/spall/spall_windows.odin index 4d96c111a..a55c42852 100644 --- a/core/prof/spall/spall_windows.odin +++ b/core/prof/spall/spall_windows.odin @@ -25,7 +25,7 @@ _write :: proc "contextless" (fd: os.Handle, data: []byte) -> (int, os.Errno) #n e := win32.WriteFile(win32.HANDLE(fd), &data[total_write], to_write, &single_write_length, nil) if single_write_length <= 0 || !e { - err := os.Errno(win32.GetLastError()) + err := os.Platform_Error(win32.GetLastError()) return int(total_write), err } total_write += i64(single_write_length) |