Matched dolphin/OSAlloc.c

This commit is contained in:
dbalatoni13 2024-11-12 19:29:11 +01:00
parent 970da00ce2
commit f6b979ac3c
2 changed files with 4 additions and 2 deletions

View file

@ -461,7 +461,9 @@ long OSCheckHeap(int heap)
ASSERTREPORT(0x39A, cell->next == NULL || cell->next->prev == cell);
ASSERTREPORT(0x39B, MINOBJSIZE <= cell->size);
ASSERTREPORT(0x39C, OFFSET(cell->size, ALIGNMENT) == 0);
ASSERTREPORT(0x39D, cell->next == NULL || (char *)cell + cell->size < (char *)cell->next);
/* clang-format off*/
ASSERTREPORT(0x39D, cell->next == NULL || (char*) cell + cell->size < (char*) cell->next);
/* clang-format on*/
total += cell->size;
free = (cell->size + free);
free -= HEADERSIZE;