Add mem.Tracking_Allocator

This commit is contained in:
gingerBill
2020-08-16 21:29:14 +01:00
parent ec178825ec
commit 1f571f48e5
2 changed files with 69 additions and 1 deletions
+1 -1
View File
@@ -168,7 +168,7 @@ default_resize_align :: proc(old_memory: rawptr, old_size, new_size, alignment:
new_memory := alloc(new_size, alignment, allocator, loc);
if new_memory == nil do return nil;
copy(new_memory, old_memory, min(old_size, new_size));;
copy(new_memory, old_memory, min(old_size, new_size));
free(old_memory, allocator, loc);
return new_memory;
}