aboutsummaryrefslogtreecommitdiff
path: root/pkg/pointer/stack-stack.go
diff options
context:
space:
mode:
authorJulien Dessaux2021-10-06 00:08:14 +0200
committerJulien Dessaux2021-10-06 00:08:14 +0200
commit2623e80a937a7d0e077a3681e13883778d1032b5 (patch)
tree384d94e02dd068b716ac14fbd56cc613b4950733 /pkg/pointer/stack-stack.go
parentImproved a test case (diff)
downloadgofunge98-2623e80a937a7d0e077a3681e13883778d1032b5.tar.gz
gofunge98-2623e80a937a7d0e077a3681e13883778d1032b5.tar.bz2
gofunge98-2623e80a937a7d0e077a3681e13883778d1032b5.zip
Simplified some code
Diffstat (limited to 'pkg/pointer/stack-stack.go')
-rw-r--r--pkg/pointer/stack-stack.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/pointer/stack-stack.go b/pkg/pointer/stack-stack.go
index 404542c..4bbfb73 100644
--- a/pkg/pointer/stack-stack.go
+++ b/pkg/pointer/stack-stack.go
@@ -80,7 +80,7 @@ func (ss *StackStack) End(p *Pointer) (reflect bool) {
}
}
ss.height--
- ss.head = ss.head.next
+ ss.head = soss
return false
}