Skip to content

Commit

Permalink
align buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
riverar committed Feb 12, 2024
1 parent 7a1c371 commit 01ec5f6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/libs/core/src/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ impl<T: Interface> Drop for Array<T> {

/// A reference-counted buffer.
#[repr(C)]
#[repr(align(8))]
struct Buffer<T>(crate::imp::RefCount, std::marker::PhantomData<T>);

impl<T: Interface> Buffer<T> {
Expand Down

0 comments on commit 01ec5f6

Please sign in to comment.