diff --git a/include/xcdat/trie_builder.hpp b/include/xcdat/trie_builder.hpp index 2b009e2..b16c9ec 100644 --- a/include/xcdat/trie_builder.hpp +++ b/include/xcdat/trie_builder.hpp @@ -217,9 +217,9 @@ class trie_builder { // following the children auto i = beg; - auto ch = static_cast(m_keys[beg][kpos]); + auto ch = static_cast(m_keys[beg][kpos]); for (auto j = beg + 1; j < end; ++j) { - const auto next_ch = static_cast(m_keys[j][kpos]); + const auto next_ch = static_cast(m_keys[j][kpos]); if (ch != next_ch) { arrange(i, j, kpos + 1, base ^ m_table.get_code(ch)); ch = next_ch;