aboutsummaryrefslogtreecommitdiff
path: root/pkg/stack/stack-stack.go
diff options
context:
space:
mode:
authorJulien Dessaux2021-09-22 00:31:53 +0200
committerJulien Dessaux2021-09-22 00:31:53 +0200
commit21cbac676962af4df351fd184fdf24b4cc7e6651 (patch)
treefcbf63f202b8d4cb3860a8c1b550cf8e77b9967c /pkg/stack/stack-stack.go
parentSimplified instruction pointer delta handling (diff)
downloadgofunge98-21cbac676962af4df351fd184fdf24b4cc7e6651.tar.gz
gofunge98-21cbac676962af4df351fd184fdf24b4cc7e6651.tar.bz2
gofunge98-21cbac676962af4df351fd184fdf24b4cc7e6651.zip
Continued implementing the stack stack
Diffstat (limited to '')
-rw-r--r--pkg/stack/stack-stack.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/stack/stack-stack.go b/pkg/stack/stack-stack.go
index db5a405..adc41c6 100644
--- a/pkg/stack/stack-stack.go
+++ b/pkg/stack/stack-stack.go
@@ -17,6 +17,7 @@ func NewStackStack() *StackStack {
}
func (ss *StackStack) Begin(p *pointer.Pointer) {
+ ss.height++
soss := ss.head
n := soss.Pop()
np := n