mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-19 01:59:48 +00:00
fix index bug in recursive decrements
This commit is contained in:
parent
e0b5a76a04
commit
c848a85eb4
3 changed files with 54 additions and 6 deletions
|
@ -2661,7 +2661,10 @@ impl<'a> Layout<'a> {
|
|||
Layout::RecursivePointer(_) => {
|
||||
unreachable!("should be looked up to get an actual layout")
|
||||
}
|
||||
Layout::Boxed(inner) => Ord::max(ptr_width, interner.get(*inner).alignment_bytes(interner, target_info)),
|
||||
Layout::Boxed(inner) => Ord::max(
|
||||
ptr_width,
|
||||
interner.get(*inner).alignment_bytes(interner, target_info),
|
||||
),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue