src/tree.c

branch
feature/tree_add
changeset 870
af0092d8789a
parent 869
9e7f0db6a725
child 871
e29c1f96646d
equal deleted inserted replaced
869:9e7f0db6a725 870:af0092d8789a
192 cx_array_simple_add(work, c); 192 cx_array_simple_add(work, c);
193 c = tree_next(c); 193 c = tree_next(c);
194 } 194 }
195 195
196 // remember this node in case no child is suitable 196 // remember this node in case no child is suitable
197 if (ret_candidate < 0 || ret < ret_candidate) { 197 if (ret < ret_candidate) {
198 candidate = (void *) node; 198 candidate = (void *) node;
199 ret_candidate = ret; 199 ret_candidate = ret;
200 } 200 }
201 } 201 }
202 } 202 }

mercurial