Support nullable wrapped tag union layouts in REPL

This commit is contained in:
ayazhafiz 2021-12-28 16:26:19 -06:00
parent cdcc31f199
commit d966d8921f
3 changed files with 108 additions and 4 deletions

View file

@ -361,7 +361,7 @@ impl<'a> UnionLayout<'a> {
}
fn stores_tag_id_in_pointer_bits(tags: &[&[Layout<'a>]], ptr_bytes: u32) -> bool {
tags.len() <= ptr_bytes as usize
tags.len() < ptr_bytes as usize
}
// i.e. it is not implicit and not stored in the pointer bits