test/avl_tests.c

changeset 244
98dc2d3a9b1d
parent 243
2e74828c5e94
child 245
db732f8c083a
equal deleted inserted replaced
243:2e74828c5e94 244:98dc2d3a9b1d
222 ucx_avl_free(tree2); 222 ucx_avl_free(tree2);
223 ucx_avl_free(tree3); 223 ucx_avl_free(tree3);
224 ucx_avl_free(tree4); 224 ucx_avl_free(tree4);
225 } 225 }
226 226
227 static intmax_t dist_int(void* a, void* b, void* n) { 227 static intmax_t dist_int(const void* a, const void* b, void* n) {
228 return ((intmax_t)a)-((intmax_t)b); 228 return ((intmax_t)a)-((intmax_t)b);
229 } 229 }
230 230
231 UCX_TEST(test_ucx_avl_find) { 231 UCX_TEST(test_ucx_avl_find) {
232 UcxAVLTree *tree = ucx_avl_new(ucx_ptrcmp); 232 UcxAVLTree *tree = ucx_avl_new(ucx_ptrcmp);

mercurial