mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
fix assert
This commit is contained in:
parent
cd95920d60
commit
9f8fb61281
2 changed files with 5 additions and 2 deletions
|
@ -554,7 +554,10 @@ impl<
|
|||
let field_size = layout_interner.stack_size(*layout);
|
||||
data_offset += field_size as i32;
|
||||
}
|
||||
debug_assert!(data_offset < base_offset + size as i32);
|
||||
|
||||
// check that the record completely contains the field
|
||||
debug_assert!(data_offset <= base_offset + size as i32,);
|
||||
|
||||
let layout = field_layouts[index as usize];
|
||||
let size = layout_interner.stack_size(layout);
|
||||
self.allocation_map.insert(*sym, owned_data);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue