Skip to content
Snippets Groups Projects
Commit ab566559 authored by Lubos Slovak's avatar Lubos Slovak
Browse files

Fixed zone searching

parent 0b0bfca9
No related branches found
No related tags found
No related merge requests found
......@@ -108,7 +108,7 @@ int gen_tree_find_less_or_equal(general_tree_t *tree,
int exact_match =
MOD_TREE_FIND_LESS_EQUAL(tree->tree, general_tree_node, avl,
&tree_node, &f, &prev);
*found = (exact_match > 0) ? f->data : NULL;
*found = (exact_match > 0) ? f->data : prev->data;
return exact_match;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment