mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
checker: disallow struct int to ptr outside unsafe (#17923)
This commit is contained in:
@ -42,7 +42,7 @@ fn @select(handle int, test Select, timeout time.Duration) !bool {
|
||||
// infinite timeout is signaled by passing null as the timeout to
|
||||
// select
|
||||
if timeout == unix.infinite_timeout {
|
||||
timeval_timeout = &C.timeval(0)
|
||||
timeval_timeout = &C.timeval(unsafe { nil })
|
||||
}
|
||||
|
||||
match test {
|
||||
|
Reference in New Issue
Block a user