From 21a17c1ae6f03848dd7f5f8eaee6174bedf09403 Mon Sep 17 00:00:00 2001 From: Feoramund <161657516+Feoramund@users.noreply.github.com> Date: Sat, 14 Jun 2025 12:05:46 -0400 Subject: [PATCH] mem: Replace `auto_cast` --- core/mem/allocators.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)