--- a/test/mpool_tests.c Thu Oct 11 16:29:30 2012 +0200 +++ b/test/mpool_tests.c Fri Oct 12 10:54:55 2012 +0200 @@ -2,7 +2,7 @@ * */ -#include <inttypes.h> +#include <stdint.h> #include "mpool_tests.h" @@ -146,11 +146,11 @@ ucx_mempool_set_destr(test, test_setdestr); - int *rtest, n = 2; + intptr_t *rtest, n = 2; do { n *= 2; UCX_TEST_ASSERT(n < 65536, "test corrupt - no movement for realloc"); - rtest = ucx_mempool_realloc(pool, test, n*sizeof(intptr_t)); + rtest = (intptr_t*) ucx_mempool_realloc(pool, test, n*sizeof(intptr_t)); } while (rtest == test); test = rtest;