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