diff options
author | Nanang Izzuddin <nanang@teluu.com> | 2008-04-23 14:35:24 +0000 |
---|---|---|
committer | Nanang Izzuddin <nanang@teluu.com> | 2008-04-23 14:35:24 +0000 |
commit | 0e7719893889b970dde8c5bb8142dd2cadd42125 (patch) | |
tree | d66d351913a6902704d7da8a304719d1431217eb | |
parent | 7b12b5b208876599394d724a4d0a6e925a2ff417 (diff) |
Fixed chunk size alignment in pool drain test
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1940 74dad513-b988-da41-8d7b-12977e46ad98
-rw-r--r-- | pjlib/src/pjlib-test/pool.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pjlib/src/pjlib-test/pool.c b/pjlib/src/pjlib-test/pool.c index a985075d..64be5e31 100644 --- a/pjlib/src/pjlib-test/pool.c +++ b/pjlib/src/pjlib-test/pool.c @@ -105,7 +105,8 @@ static int drain_test(pj_size_t size, pj_size_t increment) int size; if (freesize > 255) - size = ((pj_rand() & 0x000000FF) + 4) & ~0x03L; + size = ((pj_rand() & 0x000000FF) + PJ_POOL_ALIGNMENT) & + ~(PJ_POOL_ALIGNMENT - 1); else size = freesize; |