fixed wrong bump allocator init

This commit is contained in:
churl
2022-05-07 14:30:40 +02:00
parent f6789b3950
commit 7f3c70f87a
10 changed files with 61 additions and 73 deletions
Regular → Executable
+3
View File
@@ -34,4 +34,7 @@ void heap_demo() {
MyObj* b = new MyObj(10);
allocator.dump_free_memory();
allocator.alloc(1024 * 1024); // should fail as only 1024 * 1024 - (4 + 4) bytes remain
allocator.dump_free_memory();
}
Regular → Executable
View File
Regular → Executable
View File