ui: reset StackOp in Pop

To enable re-use.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-07-16 13:53:57 +02:00
parent 8f0d741d9f
commit b4441a8728
+1
View File
@@ -94,6 +94,7 @@ func (s *StackOp) Pop() {
if d != s.depth { if d != s.depth {
panic("unbalanced pop") panic("unbalanced pop")
} }
s.active = false
s.ops.stackDepth-- s.ops.stackDepth--
s.ops.Write([]byte{byte(ops.TypePop)}) s.ops.Write([]byte{byte(ops.TypePop)})
} }