Skip to content

Commit

Permalink
simplified setting end pos
Browse files Browse the repository at this point in the history
  • Loading branch information
drexlerd committed Feb 13, 2024
1 parent c2819d1 commit db7ec7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/flatmemory/details/types/bitset.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ namespace flatmemory
, m_block_index(0)
, m_bit_index(-1) // set bit_index to -1 for advance step
, m_cur_block(num_blocks > 0 ? blocks[m_block_index] : block_zeroes)
, m_end_pos(num_blocks > 0 ? find_end_pos() : 0)
, m_end_pos(find_end_pos())
, m_pos(begin ? -1 : m_end_pos) // set to -1 for advance step
{
// Iteration is only well-defined on non default_bit_value
Expand Down

0 comments on commit db7ec7d

Please sign in to comment.