gingerBill 5 years ago
parent
commit
8dba0e332c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/runtime/default_allocators.odin

+ 1 - 1
core/runtime/default_allocators.odin

@@ -124,7 +124,7 @@ default_temp_allocator_proc :: proc(allocator_data: rawptr, mode: Allocator_Mode
 		clear(&allocator.leaked_allocations);
 		clear(&allocator.leaked_allocations);
 
 
 	case .Resize:
 	case .Resize:
-		last_ptr := rawptr(&allocator.data[allocator.prev_offset]);
+		last_ptr := #no_bounds_check rawptr(&allocator.data[allocator.prev_offset]);
 		if old_memory == last_ptr && len(allocator.data)-allocator.prev_offset >= size {
 		if old_memory == last_ptr && len(allocator.data)-allocator.prev_offset >= size {
 			allocator.curr_offset = allocator.prev_offset+size;
 			allocator.curr_offset = allocator.prev_offset+size;
 			return old_memory;
 			return old_memory;