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

checker: stricter mutable reference check (fix #14803) (#14805)

This commit is contained in:
yuyi
2022-06-21 18:23:21 +08:00
committed by GitHub
parent c6f94e9cab
commit c160ba2a8d
11 changed files with 51 additions and 21 deletions

View File

@ -205,7 +205,7 @@ pub fn resolve_ipaddrs(addr string, family AddrFamily, typ SocketType) ?[]Addr {
// convert them into an array
mut addresses := []Addr{}
for result := results; !isnil(result); result = result.ai_next {
for result := unsafe { results }; !isnil(result); result = result.ai_next {
match AddrFamily(result.ai_family) {
.ip {
new_addr := Addr{