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
     1.1 --- a/test/avl_tests.c	Fri Dec 28 17:20:23 2018 +0100
     1.2 +++ b/test/avl_tests.c	Sat Aug 10 08:46:38 2019 +0200
     1.3 @@ -225,7 +225,7 @@
     1.4  }
     1.5  
     1.6  static intmax_t dist_int(const void* a, const void* b, void* n) {
     1.7 -    return ((intmax_t)a)-((intmax_t)b);
     1.8 +    return ((intptr_t)a)-((intptr_t)b);
     1.9  }
    1.10  
    1.11  UCX_TEST(test_ucx_avl_find) {

mercurial