test/mpool_tests.c

changeset 69
fb59270b1de3
parent 40
583718dd4cf3
child 103
08018864fb91
     1.1 --- a/test/mpool_tests.c	Thu Oct 11 16:29:30 2012 +0200
     1.2 +++ b/test/mpool_tests.c	Fri Oct 12 10:54:55 2012 +0200
     1.3 @@ -2,7 +2,7 @@
     1.4   *
     1.5   */
     1.6  
     1.7 -#include <inttypes.h>
     1.8 +#include <stdint.h>
     1.9  
    1.10  #include "mpool_tests.h"
    1.11  
    1.12 @@ -146,11 +146,11 @@
    1.13      
    1.14      ucx_mempool_set_destr(test, test_setdestr);
    1.15      
    1.16 -    int *rtest, n = 2;
    1.17 +    intptr_t *rtest, n = 2;
    1.18      do {
    1.19          n *= 2;
    1.20          UCX_TEST_ASSERT(n < 65536, "test corrupt - no movement for realloc");
    1.21 -        rtest = ucx_mempool_realloc(pool, test, n*sizeof(intptr_t));
    1.22 +        rtest = (intptr_t*) ucx_mempool_realloc(pool, test, n*sizeof(intptr_t));
    1.23      } while (rtest == test);
    1.24      test = rtest;
    1.25      

mercurial