1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

checker: error with *expr if not a pointer (#6211)

This commit is contained in:
Nick Treleaven
2020-08-24 16:19:17 +01:00
committed by GitHub
parent 60eedc2fc3
commit acc5c95f0d
4 changed files with 40 additions and 4 deletions

View File

@@ -63,7 +63,7 @@ pub fn resolve_addr(addr string, family SocketFamily, typ SocketType) ?Addr {
sport := '$port'
// This might look silly but is reccomended by MSDN
// This might look silly but is recommended by MSDN
$if windows {
socket_error(0-C.getaddrinfo(address.str, sport.str, &hints, &info))?
} $else {
@@ -71,4 +71,4 @@ pub fn resolve_addr(addr string, family SocketFamily, typ SocketType) ?Addr {
}
return new_addr(*info.ai_addr, address, port)
}
}