mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-10-07 19:37:51 +00:00
Merge pull request #1712 from seebs/seebs/btree
Ensure btree comparison doesn't fail for smallish N (Which is to say, differences between values exceeding the max value of int.)
This commit is contained in:
commit
dde7551b88
2 changed files with 3 additions and 3 deletions
|
|
@ -75,7 +75,7 @@ type (
|
|||
// 0 if a == b
|
||||
// > 0 if a > b
|
||||
//
|
||||
Cmp func(a, b uint64) int
|
||||
Cmp func(a, b uint64) int64
|
||||
|
||||
d struct { // data page
|
||||
c int
|
||||
|
|
|
|||
|
|
@ -23,8 +23,8 @@ import (
|
|||
"github.com/pilosa/pilosa/roaring"
|
||||
)
|
||||
|
||||
func cmp(a, b uint64) int {
|
||||
return int(a - b)
|
||||
func cmp(a, b uint64) int64 {
|
||||
return int64(a - b)
|
||||
}
|
||||
|
||||
type bTreeContainers struct {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue