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

cgen: fix map clone (#7366)

This commit is contained in:
Ned Palacios
2020-12-17 15:44:50 +08:00
committed by GitHub
parent 8addb31440
commit c164586fd5
3 changed files with 18 additions and 1 deletions

View File

@@ -573,7 +573,7 @@ pub fn (d &DenseArray) clone() DenseArray {
}
[unsafe]
pub fn (m map) clone() map {
pub fn (m &map) clone() map {
metasize := int(sizeof(u32) * (m.cap + 2 + m.extra_metas))
res := map{
key_bytes: m.key_bytes