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:
Folkert 2023-09-14 17:30:37 +02:00
parent 4b70076e8b
commit 310cc2ae0f
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
3 changed files with 49 additions and 8 deletions

View file

@ -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 {