diff options
| author | gingerBill <bill@gingerbill.org> | 2021-03-03 14:31:17 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-03-03 14:31:17 +0000 |
| commit | b727b6438b86ccd2d60a8f18d8a8d990206613d8 (patch) | |
| tree | 5078b027d48f0fe5c5b5a9efe5be1b8bb68611ff /core/runtime/default_allocators.odin | |
| parent | 75f127af7c635c0963e9c2ce5857be9b282ac435 (diff) | |
Minimize unneeded casts
Diffstat (limited to 'core/runtime/default_allocators.odin')
| -rw-r--r-- | core/runtime/default_allocators.odin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/runtime/default_allocators.odin b/core/runtime/default_allocators.odin index 518cdf287..03bc454d0 100644 --- a/core/runtime/default_allocators.odin +++ b/core/runtime/default_allocators.odin @@ -127,7 +127,7 @@ default_temp_allocator_proc :: proc(allocator_data: rawptr, mode: Allocator_Mode old_ptr := uintptr(old_memory); if s.prev_allocation == old_memory { - s.curr_offset = int(uintptr(s.prev_allocation) - uintptr(start)); + s.curr_offset = int(uintptr(s.prev_allocation) - start); s.prev_allocation = nil; return nil; } |