Remove invalid macro from `pvPortRealloc`.

pull/5/head
David Garske 2022-03-16 08:27:16 -07:00
parent 659d06ecf0
commit 1800534b12
2 changed files with 2 additions and 2 deletions

View File

@ -318,7 +318,7 @@ void *pvReturn = NULL;
if(pxLink->xBlockSize & xBlockAllocatedBit)
{
uint32_t blockSize = (pxLink->xBlockSize & ~xBlockAllocatedBit);
blockSize -= (xHeapStructSize + HEAP_CHECK_SIZE);
blockSize -= xHeapStructSize;
pvReturn = pvPortMalloc(xWantedSize);
if(pvReturn)
{

View File

@ -327,7 +327,7 @@ void *pvReturn = NULL;
if(pxLink->xBlockSize & xBlockAllocatedBit)
{
uint32_t blockSize = (pxLink->xBlockSize & ~xBlockAllocatedBit);
blockSize -= (uxHeapStructSize + HEAP_CHECK_SIZE);
blockSize -= uxHeapStructSize;
pvReturn = pvPortMalloc(xWantedSize);
if(pvReturn)
{