summaryrefslogtreecommitdiff
path: root/src/trie.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/trie.cpp')
-rw-r--r--src/trie.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/trie.cpp b/src/trie.cpp
index 7bb13e3..af6cdd9 100644
--- a/src/trie.cpp
+++ b/src/trie.cpp
@@ -186,6 +186,7 @@ bool xs::trie_t::rm (unsigned char *prefix_, size_t size_)
// The pruned node is the left-most node ptr in the
// node table => keep the right-most node
node = next.table [count - 1];
+ min += count - 1;
}
else if (c == min + count - 1) {
// The pruned node is the right-most node ptr in the