fix storage allocation
This commit is contained in:
parent
72c8418e45
commit
f6761a7e3d
2
store.go
2
store.go
@ -52,7 +52,7 @@ func (s *store) ensureOffset(offset int) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
s.match = s.match[:cap(s.match)]
|
s.match = s.match[:cap(s.match)]
|
||||||
for i := cap(s.match); i <= offset; i++ {
|
for i := len(s.match); i <= offset; i++ {
|
||||||
s.match = append(s.match, nil)
|
s.match = append(s.match, nil)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user