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:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user