fixes dist_int() function in AVL tests broken on 32 bit platforms

Sat, 10 Aug 2019 08:46:38 +0200

author
Mike Becker <universe@uap-core.de>
date
Sat, 10 Aug 2019 08:46:38 +0200
changeset 351
87c22ec6a0fd
parent 333
b3ad9d1a20b7
child 352
83888029778a
child 360
fed2ead878ea

fixes dist_int() function in AVL tests broken on 32 bit platforms

test/avl_tests.c file | annotate | diff | comparison | revisions
--- a/test/avl_tests.c	Fri Dec 28 17:20:23 2018 +0100
+++ b/test/avl_tests.c	Sat Aug 10 08:46:38 2019 +0200
@@ -225,7 +225,7 @@
 }
 
 static intmax_t dist_int(const void* a, const void* b, void* n) {
-    return ((intmax_t)a)-((intmax_t)b);
+    return ((intptr_t)a)-((intptr_t)b);
 }
 
 UCX_TEST(test_ucx_avl_find) {

mercurial