mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
parser: fix pointer cast expressions hack (#10777)
This commit is contained in:
@@ -185,8 +185,7 @@ pub fn resolve_ipaddrs(addr string, family AddrFamily, typ SocketType) ?[]Addr {
|
||||
|
||||
// This might look silly but is recommended by MSDN
|
||||
$if windows {
|
||||
socket_error(0 - C.getaddrinfo(&char(address.str), &char(sport.str), &hints,
|
||||
&results)) ?
|
||||
socket_error(0 - C.getaddrinfo(&char(address.str), &char(sport.str), &hints, &results)) ?
|
||||
} $else {
|
||||
x := C.getaddrinfo(&char(address.str), &char(sport.str), &hints, &results)
|
||||
wrap_error(x) ?
|
||||
|
||||
Reference in New Issue
Block a user