From fcb86d519fb44b54a6400cbc353b0d8b1148a6d4 Mon Sep 17 00:00:00 2001 From: AlTimofeyev Date: Tue, 4 Apr 2023 13:31:47 -0700 Subject: [PATCH] Added block_counter variable to a preprocessor check, minor bug. --- include/util/range_table.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/util/range_table.hpp b/include/util/range_table.hpp index 7bb6497c8..757462570 100644 --- a/include/util/range_table.hpp +++ b/include/util/range_table.hpp @@ -79,10 +79,10 @@ template 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 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