Skip to content

Commit

Permalink
ReadIndex: change bufPos to uint8
Browse files Browse the repository at this point in the history
  • Loading branch information
ilius committed Nov 27, 2024
1 parent 79b6be7 commit 740f064
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions idx.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@ func ReadIndex(filename string, synPath string, info *Info) (*Idx, error) {
wordPrefixMap := WordPrefixMap{}

var buf [255]byte // temporary buffer
var bufPos int
var bufPos uint8
state := termState

var term string
var dataOffset uint64

maxIntBytes := info.MaxIdxBytes()
maxIntBytes := uint8(info.MaxIdxBytes())

for _, b := range data {
buf[bufPos] = b
Expand Down

0 comments on commit 740f064

Please # to comment.