hku-mars/ikd-Tree

[-Wlogical-op-parentheses] note: place parentheses around the '&&' expression to silence this warning

huanglilong opened this issue · 0 comments

if (q.size()< k_nearest || dist_left_node < q.top().dist && dist_right_node < q.top().dist){

should be
if(q.size()< k_nearest || (dist_left_node < q.top().dist && dist_right_node < q.top().dist))