Ignore:
Timestamp:
Apr 23, 2008 2:35:24 PM (16 years ago)
Author:
nanang
Message:

Fixed chunk size alignment in pool drain test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pjlib-test/pool.c

    r974 r1940  
    106106 
    107107        if (freesize > 255) 
    108             size = ((pj_rand() & 0x000000FF) + 4) & ~0x03L; 
     108            size = ((pj_rand() & 0x000000FF) + PJ_POOL_ALIGNMENT) &  
     109                   ~(PJ_POOL_ALIGNMENT - 1); 
    109110        else 
    110111            size = freesize; 
Note: See TracChangeset for help on using the changeset viewer.