Fix warning
This commit is contained in:
@@ -376,7 +376,7 @@ TEST_CASE("ArenaAllocator realloc functionality") {
|
||||
// Test case where it's NOT the last allocation - memory cannot be reclaimed
|
||||
ArenaAllocator arena2(256);
|
||||
void *ptr1 = arena2.allocate_raw(50);
|
||||
void *ptr2 = arena2.allocate_raw(50);
|
||||
(void)arena2.allocate_raw(50);
|
||||
size_t used_before2 = arena2.used_bytes();
|
||||
CHECK(used_before2 >= 100); // At least 100 bytes due to potential alignment
|
||||
|
||||
|
||||
Reference in New Issue
Block a user