diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2025-06-08 22:53:52 +0200 |
|---|---|---|
| committer | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2025-06-08 22:53:52 +0200 |
| commit | d2d187eaaa4fecd33bf654dcd9013ca2ddbdef5b (patch) | |
| tree | 3563304525e553f12bba6e9edb95cbc9232b3253 | |
| parent | 0be7fe4b82e1196e9076015316111676c9bc02c3 (diff) | |
Work around untyped nil
| -rw-r--r-- | core/sys/linux/sys.odin | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/sys/linux/sys.odin b/core/sys/linux/sys.odin index 0e4cebce2..f28a5fdb2 100644 --- a/core/sys/linux/sys.odin +++ b/core/sys/linux/sys.odin @@ -1413,7 +1413,8 @@ umask :: proc "contextless" (mask: Mode) -> Mode { Available since Linux 1.0. */ gettimeofday :: proc "contextless" (tv: ^Time_Val) -> (Errno) { - ret := syscall(SYS_gettimeofday, tv, nil) + null: uintptr + ret := syscall(SYS_gettimeofday, tv, null) return Errno(-ret) } |