r3_tree_matchl does not return int