commit 8430c6edf91708759a687efe16ff9ffc56801081
parent 93807f7c9576e8771bce9430f317679db4e3a178
Author: Alexandre Bique <bique.alexandre@gmail.com>
Date: Fri, 4 Mar 2022 09:39:35 +0100
clap_event_header must be aligned by 8 at least
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/clap/events.h b/include/clap/events.h
@@ -10,7 +10,7 @@ extern "C" {
// event header
// must be the first attribute of the event
-typedef struct clap_event_header {
+typedef struct alignas(8) clap_event_header {
uint32_t size; // event size including this header, eg: sizeof (clap_event_note)
uint32_t time; // time at which the event happens
uint16_t space_id; // event space, see clap_host_event_registry