]> git.alsa-project.org Git - alsa-gobject.git/commitdiff
seq: event_data_queue: fix type of argument for getter of byte param
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Sat, 4 Apr 2020 03:22:50 +0000 (12:22 +0900)
committer坂本 貴史 <o-takashi@sakamocchi.jp>
Sat, 4 Apr 2020 05:29:02 +0000 (14:29 +0900)
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 <o-takashi@sakamocchi.jp>
src/seq/event-data-queue.c
src/seq/event-data-queue.h

index a0c07a96fc45fde49cf5ded66abea6412c37169e..8a1717bdb34c44b6a656440411baeac4585d32ca 100644 (file)
@@ -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));
 }
index f1177c0b8724bdcf4fb56671bccd9c0f6a2e707d..55e4d2c809f9f76880fd0f24d30c0d97be182e12 100644 (file)
@@ -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