the line here says that clap_event_type is of type int32_t (line 117)
typedef int32_t clap_event_type;
but the clap_event_header struct that uses it says the type is uint16_t (line 17)
typedef struct clap_event_header {
uint32_t size; // event size including this header, eg: sizeof (clap_event_note)
uint32_t time; // sample offset within the buffer for this event
uint16_t space_id; // event space, see clap_host_event_registry
uint16_t type; // event type
uint32_t flags; // see clap_event_flags
} clap_event_header_t;
In the file
https://github.com/free-audio/clap/blob/main/include/clap/events.h
the line here says that clap_event_type is of type int32_t (line 117)
but the clap_event_header struct that uses it says the type is uint16_t (line 17)