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

Fixed hattrie not searching some node values.

parent daf7f4d3
Branches
Tags
No related merge requests found
......@@ -593,6 +593,11 @@ static value_t* hattrie_walk(node_ptr* s, size_t sp,
return r;
}
}
/* use trie node value if possible */
if (s[sp].t->flag & NODE_HAS_VAL) {
return &s[sp].t->val;
}
/* consumed whole stack */
if (sp == 0) {
......
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