From ebd4f72fb2d1968ac9c13e5b5e743d265a9df6ca Mon Sep 17 00:00:00 2001 From: Charlie Stanton Date: Wed, 15 Mar 2023 20:58:07 +0000 Subject: Fix bug where SubexStoreState is sometimes not a pointer --- subex/subexstate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- cgit v1.2.3