<- Back to shtanton's homepage
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharlie Stanton <charlie@shtanton.xyz>2023-03-15 20:58:07 +0000
committerCharlie Stanton <charlie@shtanton.xyz>2023-03-15 20:58:07 +0000
commitebd4f72fb2d1968ac9c13e5b5e743d265a9df6ca (patch)
tree4c44d46bba3e06a4ef46aa1b41ed0bdde428421b
parent61a32b2d3266e9c3661aef6842ba4a1913da2df0 (diff)
downloadstred-go-ebd4f72fb2d1968ac9c13e5b5e743d265a9df6ca.tar
Fix bug where SubexStoreState is sometimes not a pointer
-rw-r--r--subex/subexstate.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/subex/subexstate.go b/subex/subexstate.go
index 5a38d0b..6318376 100644
--- a/subex/subexstate.go
+++ b/subex/subexstate.go
@@ -41,7 +41,7 @@ func (state SubexStoreState) eat(store Store, char walk.Atom) (nextStates []Sube
nextMatchStates := state.match.eat(store.clone(), char)
for _, matchState := range nextMatchStates {
nextStates = append(nextStates, SubexBranch {
- state: SubexStoreState {
+ state: &SubexStoreState {
match: matchState.state,
slot: state.slot,
next: state.next,