Reserve 10KB for error reporting.
The build was successful. Details

This commit is contained in:
Rafal Kupiec 2018-09-01 17:54:45 +02:00
parent 8fcb3c608a
commit 383fe01943
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ static const SyMemMethods sOSAllocMethods = {
0
};
static sxi32 MemBackendCalculate(SyMemBackend *pBackend, sxi32 nBytes) {
if(pBackend->pHeap->nLimit && (pBackend->pHeap->nSize + nBytes > pBackend->pHeap->nLimit)) {
if(pBackend->pHeap->nLimit && (pBackend->pHeap->nSize + nBytes > pBackend->pHeap->nLimit - 10240)) {
if(pBackend->xMemError) {
pBackend->xMemError(pBackend->pUserData);
}