forked from TrueCloudLab/neoneo-go
vm: simplify APPEND implementation a bit
This commit is contained in:
parent
13d7770c68
commit
c7c4291774
1 changed files with 1 additions and 4 deletions
|
@ -670,10 +670,7 @@ func (v *VM) execute(ctx *Context, op Instruction) {
|
||||||
itemElem := v.estack.Pop()
|
itemElem := v.estack.Pop()
|
||||||
arrElem := v.estack.Pop()
|
arrElem := v.estack.Pop()
|
||||||
|
|
||||||
val := itemElem.value
|
val := cloneIfStruct(itemElem.value)
|
||||||
if t, ok := itemElem.value.(*StructItem); ok {
|
|
||||||
val = t.Clone()
|
|
||||||
}
|
|
||||||
|
|
||||||
switch t := arrElem.value.(type) {
|
switch t := arrElem.value.(type) {
|
||||||
case *ArrayItem:
|
case *ArrayItem:
|
||||||
|
|
Loading…
Reference in a new issue