Changeset 100 for trunk/lib


Ignore:
Timestamp:
03/21/08 11:20:24 (17 years ago)
Author:
tim
Message:

fixed integer underflow bug

updated some documentation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/range_list.c

    r99 r100  
    231231
    232232  /* Try to keep memory usage down */
    233   if(rl->size < (rl->elem_alloced - 2 * RANGE_LIST_ALLOC_SIZE))
     233  if(rl->size + 2 * RANGE_LIST_ALLOC_SIZE  < rl->elem_alloced)
    234234  {
    235235    tmp = (range_list_element**)realloc(rl->elements,
Note: See TracChangeset for help on using the changeset viewer.