Skip to content

Commit

Permalink
Fix max_number_of_references
Browse files Browse the repository at this point in the history
  • Loading branch information
ksahlin authored and marcelm committed Oct 1, 2024
1 parent 226aba1 commit e5879ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/randstrobes.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ struct RefRandstrobe {
packed_t m_packed; // packed representation of ref_index and strobe offset

public:
static constexpr uint32_t max_number_of_references = (1 << (32 - bit_alloc)) - 1;
static constexpr uint32_t max_number_of_references = (1 << (32 - bit_alloc - 1)) - 1; // bit_alloc - 1 because 1 bit to main_is_first()
};

struct QueryRandstrobe {
Expand Down

0 comments on commit e5879ae

Please sign in to comment.