mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-02 11:22:19 +00:00
builtins: relax condition for reusing an allocation
This commit is contained in:
parent
b1b28650e9
commit
173343eea2
1 changed files with 1 additions and 1 deletions
|
@ -254,7 +254,7 @@ pub fn unsafeReallocate(
|
|||
const old_width = align_width + old_length * element_width;
|
||||
const new_width = align_width + new_length * element_width;
|
||||
|
||||
if (old_width == new_width) {
|
||||
if (old_width >= new_width) {
|
||||
return source_ptr;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue