mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
mem: Correct wrong error message
This commit is contained in:
@@ -1119,7 +1119,7 @@ stack_resize_bytes_non_zeroed :: proc(
|
|||||||
old_memory := raw_data(old_data)
|
old_memory := raw_data(old_data)
|
||||||
old_size := len(old_data)
|
old_size := len(old_data)
|
||||||
if s.data == nil {
|
if s.data == nil {
|
||||||
panic("Stack free all on an uninitialized stack allocator", loc)
|
panic("Stack resize on an uninitialized stack allocator", loc)
|
||||||
}
|
}
|
||||||
if old_memory == nil {
|
if old_memory == nil {
|
||||||
return stack_alloc_bytes_non_zeroed(s, size, alignment, loc)
|
return stack_alloc_bytes_non_zeroed(s, size, alignment, loc)
|
||||||
|
|||||||
Reference in New Issue
Block a user