aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFeoramund <161657516+Feoramund@users.noreply.github.com>2025-06-14 12:05:46 -0400
committerFeoramund <161657516+Feoramund@users.noreply.github.com>2025-06-15 12:34:15 -0400
commit21a17c1ae6f03848dd7f5f8eaee6174bedf09403 (patch)
tree21bbeaaa75ed4b511f3c424f832f9a1aa67c29a4
parent8f68c464676a87c8e8c664af0e35998bc33f3acd (diff)
mem: Replace `auto_cast`
-rw-r--r--core/mem/allocators.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/mem/allocators.odin b/core/mem/allocators.odin
index 09072f905..f62ef4fb4 100644
--- a/core/mem/allocators.odin
+++ b/core/mem/allocators.odin
@@ -1349,7 +1349,7 @@ small_stack_alloc_bytes_non_zeroed :: proc(
s.offset += padding
next_addr := curr_addr + uintptr(padding)
header := (^Small_Stack_Allocation_Header)(next_addr - size_of(Small_Stack_Allocation_Header))
- header.padding = auto_cast padding
+ header.padding = cast(u8)padding
// We must poison the header, no matter what its state is, because there
// may have been an out-of-order free before this point.
sanitizer.address_poison(header)