mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-04 14:48:47 +00:00
[mem]: Fix handling of default resize to check alignment
This commit is contained in:
+1
-1
@@ -1096,7 +1096,7 @@ _default_resize_bytes_align :: #force_inline proc(
|
||||
err := free_bytes(old_data, allocator, loc)
|
||||
return nil, err
|
||||
}
|
||||
if new_size == old_size {
|
||||
if new_size == old_size && is_aligned(old_memory, alignment) {
|
||||
return old_data, .None
|
||||
}
|
||||
new_memory : []byte
|
||||
|
||||
Reference in New Issue
Block a user