This is an automated email from the ASF dual-hosted git repository.
hanahmily pushed a commit to branch v0.7.x
in repository https://gitbox.apache.org/repos/asf/skywalking-banyandb.git
The following commit(s) were added to refs/heads/v0.7.x by this push:
new 00aeceaa Fix overflow on 386
00aeceaa is described below
commit 00aeceaa89ff6e83eee2aaccb9c1acc602e9981a
Author: Gao Hongtao <[email protected]>
AuthorDate: Tue Nov 12 14:06:33 2024 +0000
Fix overflow on 386
Signed-off-by: Gao Hongtao <[email protected]>
---
pkg/index/inverted/sort.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pkg/index/inverted/sort.go b/pkg/index/inverted/sort.go
index 68071cc9..23cc57df 100644
--- a/pkg/index/inverted/sort.go
+++ b/pkg/index/inverted/sort.go
@@ -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 {