From 40a4a36b1da3da66f158d82c0dcb5647ab92afa5 Mon Sep 17 00:00:00 2001 From: Kirill Konstantinov Date: Tue, 25 Jan 2022 14:23:21 +0300 Subject: [PATCH] Fix polldescriptors() data types --- alsaaudio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/alsaaudio.c b/alsaaudio.c index ce9b610..dd8821d 100644 --- a/alsaaudio.c +++ b/alsaaudio.c @@ -1732,7 +1732,7 @@ alsapcm_polldescriptors(alsapcm_t *self, PyObject *args) for (i = 0; i < count; ++i) { PyList_SetItem(result, i, - Py_BuildValue("II", fds[i].fd, fds[i].events)); + Py_BuildValue("ih", fds[i].fd, fds[i].events)); } return result; @@ -3001,7 +3001,7 @@ alsamixer_polldescriptors(alsamixer_t *self, PyObject *args) for (i = 0; i < count; ++i) { PyList_SetItem(result, i, - Py_BuildValue("II", fds[i].fd, fds[i].events)); + Py_BuildValue("ih", fds[i].fd, fds[i].events)); } return result;