mirror of
https://github.com/vlang/v.git
synced 2025-09-14 23:12:33 +03:00
cgen: fix map clone (#7366)
This commit is contained in:
parent
8addb31440
commit
c164586fd5
3 changed files with 18 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue