mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
mem: Replace auto_cast
This commit is contained in:
@@ -1349,7 +1349,7 @@ small_stack_alloc_bytes_non_zeroed :: proc(
|
|||||||
s.offset += padding
|
s.offset += padding
|
||||||
next_addr := curr_addr + uintptr(padding)
|
next_addr := curr_addr + uintptr(padding)
|
||||||
header := (^Small_Stack_Allocation_Header)(next_addr - size_of(Small_Stack_Allocation_Header))
|
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
|
// We must poison the header, no matter what its state is, because there
|
||||||
// may have been an out-of-order free before this point.
|
// may have been an out-of-order free before this point.
|
||||||
sanitizer.address_poison(header)
|
sanitizer.address_poison(header)
|
||||||
|
|||||||
Reference in New Issue
Block a user