diff --git a/CHANGELOG.md b/CHANGELOG.md index cbff44b384f..e214fe2f1dc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,7 @@ - FIXED: Typo in file name src/util/timed_historgram.cpp -> src/util/timed_histogram.cpp [#6428](https://github.com/Project-OSRM/osrm-backend/issues/6428) - CHANGED: Replace boost::string_ref with std::string_view [#6433](https://github.com/Project-OSRM/osrm-backend/pull/6433) - ADDED: Print tracebacks for Lua runtime errors [#6564](https://github.com/Project-OSRM/osrm-backend/pull/6564) + - FIXED: Added a variable to preprocessor guard in file osrm-backend/include/util/range_table.hpp to solve build error. [#6596](https://github.com/Project-OSRM/osrm-backend/pull/6596) - Routing: - FIXED: Fix adding traffic signal penalties during compression [#6419](https://github.com/Project-OSRM/osrm-backend/pull/6419) # 5.27.1 diff --git a/include/util/range_table.hpp b/include/util/range_table.hpp index 7bb6497c8c1..75746257021 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