test/avl_tests.c

changeset 351
87c22ec6a0fd
parent 330
d2bbf907a189
equal deleted inserted replaced
333:b3ad9d1a20b7 351:87c22ec6a0fd
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(const void* a, const 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 ((intptr_t)a)-((intptr_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_cmp_ptr); 232 UcxAVLTree *tree = ucx_avl_new(ucx_cmp_ptr);
233 UcxAVLTree *tree2 = ucx_avl_new(ucx_cmp_ptr); 233 UcxAVLTree *tree2 = ucx_avl_new(ucx_cmp_ptr);

mercurial