aboutsummaryrefslogtreecommitdiff
path: root/core/runtime
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2020-03-15 14:31:26 +0000
committergingerBill <bill@gingerbill.org>2020-03-15 14:31:26 +0000
commit18fb6a4be41f30de75b445266b958e153ecc16d9 (patch)
tree6770795d754effc1751d8c7beb13652db39f3770 /core/runtime
parentbf0c6f5a30e406a0e0f73014c024ba63dcb47b43 (diff)
parent8dba0e332c73a08301c5ac6c0d310c483c66cb11 (diff)
Merge branch 'master' into llvm-integration
Diffstat (limited to 'core/runtime')
-rw-r--r--core/runtime/default_allocators.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/runtime/default_allocators.odin b/core/runtime/default_allocators.odin
index a4ba9f33b..a20283b5a 100644
--- a/core/runtime/default_allocators.odin
+++ b/core/runtime/default_allocators.odin
@@ -124,7 +124,7 @@ default_temp_allocator_proc :: proc(allocator_data: rawptr, mode: Allocator_Mode
clear(&allocator.leaked_allocations);
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 {
allocator.curr_offset = allocator.prev_offset+size;
return old_memory;