aboutsummaryrefslogtreecommitdiff
path: root/base/runtime
diff options
context:
space:
mode:
authorflysand7 <thebumboni@gmail.com>2024-09-19 21:07:08 +1100
committerflysand7 <thebumboni@gmail.com>2024-09-19 21:07:08 +1100
commitbec09d82df46d50cfa4e9cc5b3cc1c94b786b320 (patch)
treead68c749f2bc6fa29cf0f5b2ce59c1b85586b237 /base/runtime
parente0bb07728d90c870abff6db8a3025b429b3bc37b (diff)
Fix vet errors
Diffstat (limited to 'base/runtime')
-rw-r--r--base/runtime/heap_allocator.odin1
1 files changed, 0 insertions, 1 deletions
diff --git a/base/runtime/heap_allocator.odin b/base/runtime/heap_allocator.odin
index 7347696f4..4b04dffef 100644
--- a/base/runtime/heap_allocator.odin
+++ b/base/runtime/heap_allocator.odin
@@ -40,7 +40,6 @@ heap_allocator_proc :: proc(allocator_data: rawptr, mode: Allocator_Mode,
ptr := uintptr(aligned_mem)
aligned_ptr := (ptr + uintptr(a)-1) & ~(uintptr(a)-1)
- diff := int(aligned_ptr - ptr)
if allocated_mem == nil {
aligned_free(old_ptr)
aligned_free(allocated_mem)