Added block_counter variable to a preprocessor check, minor bug. (#6596)

This commit is contained in:
Al
2023-04-16 14:22:30 -07:00
committed by GitHub
parent 134da91fa8
commit 0ca913132a
2 changed files with 4 additions and 1 deletions
+3 -1
View File
@@ -79,10 +79,10 @@ template <unsigned BLOCK_SIZE, storage::Ownership Ownership> class RangeTable
unsigned last_length = 0;
unsigned lengths_prefix_sum = 0;
unsigned block_idx = 0;
unsigned block_counter = 0;
BlockT block;
#ifndef BOOST_ASSERT_IS_VOID
unsigned block_sum = 0;
unsigned block_counter = 0;
#endif
for (const unsigned l : lengths)
{
@@ -109,7 +109,9 @@ template <unsigned BLOCK_SIZE, storage::Ownership Ownership> class RangeTable
if (BLOCK_SIZE == block_idx)
{
diff_blocks.push_back(block);
#ifndef BOOST_ASSERT_IS_VOID
block_counter++;
#endif
}
// we can only store strings with length 255