diff options
Diffstat (limited to 'pjlib/src/pjlib-test/pool.c')
-rw-r--r-- | pjlib/src/pjlib-test/pool.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pjlib/src/pjlib-test/pool.c b/pjlib/src/pjlib-test/pool.c index d7af16e4..e3fbb555 100644 --- a/pjlib/src/pjlib-test/pool.c +++ b/pjlib/src/pjlib-test/pool.c @@ -93,7 +93,8 @@ static int pool_alignment_test(void) if (!pool) return -300; -#define IS_ALIGNED(p) ((((unsigned long)p) & (PJ_POOL_ALIGNMENT-1)) == 0) +#define IS_ALIGNED(p) ((((unsigned long)(pj_ssize_t)p) & \ + (PJ_POOL_ALIGNMENT-1)) == 0) for (i=0; i<LOOP; ++i) { /* Test first allocation */ @@ -195,7 +196,7 @@ static int drain_test(pj_size_t size, pj_size_t increment) size = ((pj_rand() & 0x000000FF) + PJ_POOL_ALIGNMENT) & ~(PJ_POOL_ALIGNMENT - 1); else - size = freesize; + size = (int)freesize; p = pj_pool_alloc(pool, size); if (!p) { |