Skip to content

Commit

Permalink
Add a tiny cosmetic change to be more explicit (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
togatoga authored Oct 23, 2023
1 parent 1db7324 commit 2d9ba5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dict/trie/da.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ func (d *DoubleArray) expand() {
(*dst)[i].Check = int32(-(i + 1))
}

start := -(*d)[0].Check
start := -(*d)[rootID].Check
end := -(*dst)[start].Base
(*dst)[srcSize].Base = -end
(*dst)[start].Base = int32(-(dstSize - 1))
Expand Down

0 comments on commit 2d9ba5f

Please sign in to comment.