Files
tantivy/src/postings
Christoph Herzog 96c3d54ac7 fix: Fix power of two computation on 32bit architectures (#1624)
The current `compute_previous_power_of_two()` implementation used for
TermHashmap takes and returns `usize` , but actually only works
correclty on 64 bit architectures (aka usize == u64)

On other architectures the leading_zeros computation is run on the wrong
type (must be u64), and leads to overflows.

Fixed simply computing the leading_zeros based on a u64 value.
2022-10-18 11:55:02 +09:00
..
2022-09-18 18:05:37 +07:00
2022-09-26 09:37:55 +09:00
2022-08-13 18:25:47 +08:00
2022-06-21 15:53:33 +09:00