Skip to content

Commit

Permalink
Use NativePType compare in bitpacked search (#828)
Browse files Browse the repository at this point in the history
For consistency, this comparison will never be a float
  • Loading branch information
robert3005 authored Sep 16, 2024
1 parent f590725 commit 9257acc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ impl<T: BitPacking + NativePType> IndexOrd<T> for BitPackedSearch {
idx + self.offset,
)
};
val.partial_cmp(elem)
Some(val.compare(*elem))
}
}

Expand Down

0 comments on commit 9257acc

Please sign in to comment.