mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 15:51:12 +00:00
be a bit less string in debug assert
This commit is contained in:
parent
36700a0c70
commit
d1bf07fdcd
1 changed files with 3 additions and 1 deletions
|
@ -27,7 +27,9 @@ impl Alignment {
|
|||
let value_align = value.alignment_bytes(ptr_bytes);
|
||||
|
||||
let mut bits = key_align.max(value_align) as u8;
|
||||
debug_assert!(bits == 4 || bits == 8 || bits == 16);
|
||||
|
||||
// alignment must be a power of 2
|
||||
debug_assert!(bits.is_power_of_two());
|
||||
|
||||
let value_before_key_flag = 0b1000_0000;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue