From 7e1ce160e9370d727e80df069afb8ae60d4d3d11 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 28 Sep 2020 00:19:36 +0200 Subject: [PATCH] ARM 32bit enum alignment (used in MIDIBuffer) Evoral::EventType is written directly into a uint8_t buffer by dereferncing a pointer-type: *(reinterpret_cast((uintptr_t)...) --- libs/evoral/evoral/types.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libs/evoral/evoral/types.h b/libs/evoral/evoral/types.h index 09d2946ca4..c0dc82a50d 100644 --- a/libs/evoral/evoral/types.h +++ b/libs/evoral/evoral/types.h @@ -52,7 +52,10 @@ typedef int32_t event_id_t; enum EventType { NO_EVENT, MIDI_EVENT, - LIVE_MIDI_EVENT + LIVE_MIDI_EVENT, +#if defined(__arm__) || defined(__aarch64__) + _Force32BitAlignment = 0xffffffff +#endif }; /** Type of a parameter (opaque, mapped by application, e.g. gain) */