fix storage allocation

This commit is contained in:
Arpad Ryszka 2017-07-27 02:18:19 +02:00
parent 72c8418e45
commit f6761a7e3d

View File

@ -52,7 +52,7 @@ func (s *store) ensureOffset(offset int) {
}
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)
}
}