119,15 → 119,15 |
void *res; |
|
/* Check for invalid values */ |
if (incr < 0 && -incr > heapsize) |
if ((incr < 0) && (((size_t) -incr) > heapsize)) |
return NULL; |
|
/* Check for too large value */ |
if (incr > 0 && incr+heapsize < heapsize) |
if ((incr > 0) && (incr + heapsize < heapsize)) |
return NULL; |
|
/* Check for too small values */ |
if (incr < 0 && incr+heapsize > heapsize) |
if ((incr < 0) && (incr + heapsize > heapsize)) |
return NULL; |
|
/* Check for user limit */ |
175,7 → 175,7 |
asz = 1 << (fnzb64(sz - 1) + 1); |
|
/* Set heapsize to some meaningful value */ |
if (maxheapsize == -1) |
if (maxheapsize == (size_t) -1) |
set_maxheapsize(MAX_HEAP_SIZE); |
|
/* |