diff options
Diffstat (limited to 'memory.cpp')
-rw-r--r-- | memory.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -84,11 +84,12 @@ Memory_Block_Bitmap_AllocateNew(project_state *State, memory *Memory, cache_entr } break; } + uint32 Blocks_Max = Memory->Slot[B_CachedBitmaps].Size / BitmapBlockSize; + Assert(Blocks_Max > LastBlock); return LastBlock + LastEntry_BlockCount; /* uint32 Blocks_Needed = (NewSize / BitmapBlockSize) + 1; - uint32 Blocks_Max = Memory->Slot[B_CachedBitmaps].Size / BitmapBlockSize; uint32 Block_Index_Available = 0; */ |