mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Cleanup of json.clone_value
This commit is contained in:
@@ -119,10 +119,8 @@ clone_value :: proc(value: Value, allocator := context.allocator) -> Value {
|
|||||||
}
|
}
|
||||||
return new_o
|
return new_o
|
||||||
case Array:
|
case Array:
|
||||||
len := len(v)
|
new_a := make(Array, len(v))
|
||||||
new_a := make(Array, len)
|
for elem, idx in v {
|
||||||
vv := v
|
|
||||||
for elem, idx in vv {
|
|
||||||
new_a[idx] = clone_value(elem)
|
new_a[idx] = clone_value(elem)
|
||||||
}
|
}
|
||||||
return new_a
|
return new_a
|
||||||
|
|||||||
Reference in New Issue
Block a user