Minor fixes

This commit is contained in:
gingerBill
2021-03-18 13:25:41 +00:00
parent 04e0cacd30
commit 359ae29d98
7 changed files with 8 additions and 7 deletions
+1 -2
View File
@@ -149,7 +149,7 @@ scratch_allocator_proc :: proc(allocator_data: rawptr, mode: Allocator_Mode,
scratch_allocator_init(s, DEFAULT_BACKING_SIZE);
}
size := size;
size := size;
switch mode {
case .Alloc:
@@ -673,7 +673,6 @@ dynamic_pool_alloc :: proc(using pool: ^Dynamic_Pool, bytes: int) -> rawptr {
current_block = new_block;
}
n := bytes;
extra := alignment - (n % alignment);
n += extra;