diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2025-06-09 00:00:24 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-09 00:00:24 +0200 |
| commit | 7813e9fb378753bf110f0ad4b5cc85e7f16336d4 (patch) | |
| tree | e9e352e36435842a016cfb3d559fa9df3f6611c6 /core/sys | |
| parent | d2d187eaaa4fecd33bf654dcd9013ca2ddbdef5b (diff) | |
| parent | 0747032e4a836a4295538d2c4945f2610ad2e615 (diff) | |
Merge pull request #5300 from Feoramund/fix-5299
Guard against untyped `nil` in type cycle and type info sections
Diffstat (limited to 'core/sys')
| -rw-r--r-- | core/sys/linux/sys.odin | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/sys/linux/sys.odin b/core/sys/linux/sys.odin index f28a5fdb2..deb22726f 100644 --- a/core/sys/linux/sys.odin +++ b/core/sys/linux/sys.odin @@ -1413,8 +1413,7 @@ umask :: proc "contextless" (mask: Mode) -> Mode { Available since Linux 1.0. */ gettimeofday :: proc "contextless" (tv: ^Time_Val) -> (Errno) { - null: uintptr - ret := syscall(SYS_gettimeofday, tv, null) + ret := syscall(SYS_gettimeofday, tv, rawptr(nil)) return Errno(-ret) } |