Ignore:
Timestamp:
Nov 22, 2012 5:00:01 AM (11 years ago)
Author:
nanang
Message:

Fix #1593: avoid wrap around in caching pool capacity value.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/include/pj/pool_i.h

    r3553 r4298  
    4848        size = (size + PJ_POOL_ALIGNMENT) & ~(PJ_POOL_ALIGNMENT-1); 
    4949    } 
    50     if ((unsigned)(block->end - block->cur) >= size) { 
     50    if ((pj_size_t)(block->end - block->cur) >= size) { 
    5151        void *ptr = block->cur; 
    5252        block->cur += size; 
Note: See TracChangeset for help on using the changeset viewer.