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

map/scope/checker: update just var type & ret zero in map.get3

This commit is contained in:
joe-conigliaro
2020-03-29 00:00:28 +11:00
parent 9fb218d379
commit 718819eb7a
3 changed files with 21 additions and 26 deletions

View File

@@ -358,9 +358,7 @@ fn (m map) get3(key string, zero voidptr) voidptr {
index += 2
meta += probe_inc
}
out := malloc(m.value_bytes)
C.memcpy(out, zero, m.value_bytes)
return out
return zero
//return voidptr(0)
}