| ... | ... | @@ -136,8 +136,8 @@ const WindowsImpl = struct { |
| 136 | 136 | } |
| 137 | 137 | |
| 138 | 138 | const rc = os.windows.ntdll.RtlWaitOnAddress( |
| 139 | | @as(?*const anyopaque, @ptrCast(ptr)), |
| 140 | | @as(?*const anyopaque, @ptrCast(&expect)), |
| 139 | ptr, |
| 140 | &expect, |
| 141 | 141 | @sizeOf(@TypeOf(expect)), |
| 142 | 142 | timeout_ptr, |
| 143 | 143 | ); |
| ... | ... | @@ -153,7 +153,7 @@ const WindowsImpl = struct { |
| 153 | 153 | } |
| 154 | 154 | |
| 155 | 155 | fn wake(ptr: *const Atomic(u32), max_waiters: u32) void { |
| 156 | | const address = @as(?*const anyopaque, @ptrCast(ptr)); |
| 156 | const address: ?*const anyopaque = ptr; |
| 157 | 157 | assert(max_waiters != 0); |
| 158 | 158 | |
| 159 | 159 | switch (max_waiters) { |
| ... | ... | @@ -188,7 +188,7 @@ const DarwinImpl = struct { |
| 188 | 188 | // true so that we we know to ignore the ETIMEDOUT result. |
| 189 | 189 | var timeout_overflowed = false; |
| 190 | 190 | |
| 191 | | const addr = @as(*const anyopaque, @ptrCast(ptr)); |
| 191 | const addr: *const anyopaque = ptr; |
| 192 | 192 | const flags = os.darwin.UL_COMPARE_AND_WAIT | os.darwin.ULF_NO_ERRNO; |
| 193 | 193 | const status = blk: { |
| 194 | 194 | if (supports_ulock_wait2) { |
| ... | ... | @@ -227,7 +227,7 @@ const DarwinImpl = struct { |
| 227 | 227 | } |
| 228 | 228 | |
| 229 | 229 | while (true) { |
| 230 | | const addr = @as(*const anyopaque, @ptrCast(ptr)); |
| 230 | const addr: *const anyopaque = ptr; |
| 231 | 231 | const status = os.darwin.__ulock_wake(flags, addr, 0); |
| 232 | 232 | |
| 233 | 233 | if (status >= 0) return; |