mirror of
https://github.com/roc-lang/roc.git
synced 2024-11-10 10:02:38 +03:00
builtins: relax condition for reusing an allocation
This commit is contained in:
parent
b1b28650e9
commit
173343eea2
@ -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…
Reference in New Issue
Block a user