mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 08:34:33 +00:00
fix alignment 16 bug in roc_list
the rust RocList did not pad the reference count when the alignment is bigger than that of the reference count
This commit is contained in:
parent
4b70076e8b
commit
310cc2ae0f
3 changed files with 49 additions and 8 deletions
|
@ -228,7 +228,7 @@ impl<T, E> Drop for RocResult<T, E> {
|
|||
}
|
||||
|
||||
#[derive(Copy, Clone, PartialEq, Eq, Hash)]
|
||||
#[repr(C)]
|
||||
#[repr(C, align(16))]
|
||||
pub struct RocDec([u8; 16]);
|
||||
|
||||
impl Debug for RocDec {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue