Skip to content

Commit

Permalink
Fix overflow on 386
Browse files Browse the repository at this point in the history
Signed-off-by: Gao Hongtao <[email protected]>
  • Loading branch information
hanahmily committed Nov 12, 2024
1 parent 1b081bd commit 00aecea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/index/inverted/sort.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func (si *sortIterator) loadCurrent() bool {
size := si.size + si.skipped
if size < 0 {
// overflow
size = math.MaxInt64
size = math.MaxInt
}
topNSearch := bluge.NewTopNSearch(size, si.query.(*queryNode).query).SortBy([]string{si.sortedKey})
if si.skipped > 0 {
Expand Down

0 comments on commit 00aecea

Please sign in to comment.