Skip to content

Commit

Permalink
Match smartGarbage
Browse files Browse the repository at this point in the history
  • Loading branch information
SeekyCt committed Jan 8, 2025
1 parent ad859f5 commit 8d66b23
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,6 @@ SmartAllocation * smartAlloc(size_t size, u8 type)
}
}

// NON_MATCHING
void smartGarbage()
{
sysWaitDrawSync();
Expand Down Expand Up @@ -562,8 +561,8 @@ void smartGarbage()
// Update spaceAfter of final allocation, since assumption it'd be 0 wasn't true
if (swp->allocatedEnd != NULL)
{
// This line isn't matching
swp->allocatedEnd->spaceAfter = (u32) swp->heapStart + GET_SMART_HEAP_SIZE()
u32 heapSize = GET_SMART_HEAP_SIZE();
swp->allocatedEnd->spaceAfter = (u32) swp->heapStart + heapSize
- (u32) swp->allocatedEnd->data - swp->allocatedEnd->size;
}

Expand Down

0 comments on commit 8d66b23

Please sign in to comment.