Skip to content
This repository has been archived by the owner on Nov 20, 2023. It is now read-only.

Commit

Permalink
fix bug: copy input value before pushing it to the stack in arg()
Browse files Browse the repository at this point in the history
  • Loading branch information
thwd-duda committed Jan 10, 2018
1 parent 89b58c5 commit 50a580d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kvm/execute.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func (vm VirtualMachine) Execute(program inst.Sequence, input val.Value) (val.Va
nil,
}
}
stack.Push(input)
stack.Push(input.Copy())

case inst.CurrentUser:
stack.Push(val.Ref{vm.UserModelId(), vm.UserID})
Expand Down

0 comments on commit 50a580d

Please sign in to comment.