Skip to content
Snippets Groups Projects
Commit 3166bd0a authored by Marek Vavrusa's avatar Marek Vavrusa
Browse files

Restored removed assertion, trie node shouldn't split this way.

parent 8774a8fb
Branches
Tags
No related merge requests found
......@@ -645,6 +645,7 @@ value_t* hattrie_get(hattrie_t* T, const char* key, size_t len)
/* attempt to fit new element and split if it doesn't fit */
while (val == NULL) {
assert(len > 0);
size_t m_old = node.b->weight;
if (*node.flag & NODE_TYPE_PURE_BUCKET) {
val = hhash_map(node.b, key + 1, len - 1, HHASH_INSERT);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment