Skip to content

Commit

Permalink
Simplify check
Browse files Browse the repository at this point in the history
  • Loading branch information
quajak committed Oct 13, 2023
1 parent 736bd73 commit fcc8c63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/Cosmos.Core/Memory/RAT.cs
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ public static uint GetPageCount(byte aType = 0)
/// <returns>A pointer to the first page on success, null on failure.</returns>
public static void* AllocPages(PageType aType, uint aPageCount = 1)
{
if (MinFreePages > 0 && MinFreePages > FreePageCount)
if (MinFreePages > FreePageCount)
{
Heap.Collect();
GCTriggered++;
Expand Down

0 comments on commit fcc8c63

Please sign in to comment.