src/tree.c

branch
feature/tree_add
changeset 869
9e7f0db6a725
parent 868
56a908924510
child 870
af0092d8789a
equal deleted inserted replaced
868:56a908924510 869:9e7f0db6a725
167 } 167 }
168 } 168 }
169 169
170 // remember a candidate for adding the data 170 // remember a candidate for adding the data
171 // also remember the exact return code from sfunc 171 // also remember the exact return code from sfunc
172 void *candidate = NULL; 172 void *candidate = (void *) root;
173 int ret_candidate = -1; 173 int ret_candidate = ret;
174 174
175 // process the working stack 175 // process the working stack
176 while (work_size > 0) { 176 while (work_size > 0) {
177 // pop element 177 // pop element
178 void const *node = work[--work_size]; 178 void const *node = work[--work_size];

mercurial