diff options
Diffstat (limited to 'pjlib/src/pjlib-test/pool.c')
-rw-r--r-- | pjlib/src/pjlib-test/pool.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pjlib/src/pjlib-test/pool.c b/pjlib/src/pjlib-test/pool.c index e3fbb555..581ccc69 100644 --- a/pjlib/src/pjlib-test/pool.c +++ b/pjlib/src/pjlib-test/pool.c @@ -190,20 +190,20 @@ static int drain_test(pj_size_t size, pj_size_t increment) /* Drain the pool until there's nothing left. */ while (freesize > 0) { - int size; + int size2; if (freesize > 255) - size = ((pj_rand() & 0x000000FF) + PJ_POOL_ALIGNMENT) & + size2 = ((pj_rand() & 0x000000FF) + PJ_POOL_ALIGNMENT) & ~(PJ_POOL_ALIGNMENT - 1); else - size = (int)freesize; + size2 = (int)freesize; - p = pj_pool_alloc(pool, size); + p = pj_pool_alloc(pool, size2); if (!p) { status=-20; goto on_error; } - freesize -= size; + freesize -= size2; } /* Check that capacity is zero. */ |