Fix warning

This commit is contained in:
2025-08-15 14:20:28 -04:00
parent 3a508602f5
commit 9fdcae5098

View File

@@ -376,7 +376,7 @@ TEST_CASE("ArenaAllocator realloc functionality") {
// Test case where it's NOT the last allocation - memory cannot be reclaimed // Test case where it's NOT the last allocation - memory cannot be reclaimed
ArenaAllocator arena2(256); ArenaAllocator arena2(256);
void *ptr1 = arena2.allocate_raw(50); void *ptr1 = arena2.allocate_raw(50);
void *ptr2 = arena2.allocate_raw(50); (void)arena2.allocate_raw(50);
size_t used_before2 = arena2.used_bytes(); size_t used_before2 = arena2.used_bytes();
CHECK(used_before2 >= 100); // At least 100 bytes due to potential alignment CHECK(used_before2 >= 100); // At least 100 bytes due to potential alignment