From: Takashi Sakamoto Date: Sat, 4 Apr 2020 03:22:50 +0000 (+0900) Subject: seq: event_data_queue: fix type of argument for getter of byte param X-Git-Tag: v0.1.0~247 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=b53b832cd710e71801c48a1d7b9ad6bde127f4de;p=alsa-gobject.git seq: event_data_queue: fix type of argument for getter of byte param Although the getter of byte param has argument of guint32 type, the argument should be guint8 type. Fixes: a272b5d0e727: ("seq: event_data_queue: add accessor methods") Signed-off-by: Takashi Sakamoto --- diff --git a/src/seq/event-data-queue.c b/src/seq/event-data-queue.c index a0c07a9..8a1717b 100644 --- a/src/seq/event-data-queue.c +++ b/src/seq/event-data-queue.c @@ -192,7 +192,7 @@ const guint8 *alsaseq_event_data_queue_get_byte_param(ALSASeqEventDataQueue *sel * Set eight quadlets as param of the queue event. */ void alsaseq_event_data_queue_set_byte_param(ALSASeqEventDataQueue *self, - const guint32 bytes[8]) + const guint8 bytes[8]) { memcpy(self->param.d8, bytes, sizeof(self->param.d8)); } diff --git a/src/seq/event-data-queue.h b/src/seq/event-data-queue.h index f1177c0..55e4d2c 100644 --- a/src/seq/event-data-queue.h +++ b/src/seq/event-data-queue.h @@ -43,7 +43,7 @@ void alsaseq_event_data_queue_set_quadlet_param(ALSASeqEventDataQueue *self, const guint8 *alsaseq_event_data_queue_get_byte_param(ALSASeqEventDataQueue *self); void alsaseq_event_data_queue_set_byte_param(ALSASeqEventDataQueue *self, - const guint32 bytes[8]); + const guint8 bytes[8]); G_END_DECLS