aboutsummaryrefslogtreecommitdiff
path: root/core/runtime/default_allocators.odin
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2020-09-26 16:02:03 +0100
committergingerBill <bill@gingerbill.org>2020-09-26 16:02:03 +0100
commit840af6825aa5a728bb7fab3be24edff34aa3d571 (patch)
tree209fb558042e30cf1ea3d090c3a14ca3f320326e /core/runtime/default_allocators.odin
parent3ccaf47566f31d22daf3493f8fdcaea4fa825748 (diff)
Update packages os, path, and filepath
Diffstat (limited to 'core/runtime/default_allocators.odin')
-rw-r--r--core/runtime/default_allocators.odin2
1 files changed, 0 insertions, 2 deletions
diff --git a/core/runtime/default_allocators.odin b/core/runtime/default_allocators.odin
index a132b7a4f..052bbc91f 100644
--- a/core/runtime/default_allocators.odin
+++ b/core/runtime/default_allocators.odin
@@ -110,9 +110,7 @@ default_temp_allocator_proc :: proc(allocator_data: rawptr, mode: Allocator_Mode
}
last_ptr := rawptr(&allocator.data[allocator.prev_offset]);
if old_memory == last_ptr {
- full_size := allocator.curr_offset - allocator.prev_offset;
allocator.curr_offset = allocator.prev_offset;
- mem_zero(last_ptr, full_size);
return nil;
} else {
#no_bounds_check start, end := &allocator.data[0], &allocator.data[allocator.curr_offset];