From a5dcdc9a0c2157fd2f89c4166a238b02e5cf2d0e Mon Sep 17 00:00:00 2001 From: Clemens Ladisch Date: Mon, 12 Oct 2009 08:46:11 +0200 Subject: [PATCH] hcontrol: fix variable type The last parameter of PyString_AsStringAndSize is Py_ssize_t, not int. This shuts up a compiler warning. Signed-off-by: Clemens Ladisch --- pyalsa/alsahcontrol.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyalsa/alsahcontrol.c b/pyalsa/alsahcontrol.c index bb853e7..68d8228 100644 --- a/pyalsa/alsahcontrol.c +++ b/pyalsa/alsahcontrol.c @@ -1082,7 +1082,8 @@ PyDoc_STRVAR(setarray__doc__, static PyObject * pyalsahcontrolvalue_settuple(struct pyalsahcontrolvalue *self, PyObject *args) { - int type, len, list; + int type, list; + Py_ssize_t len; long i, count; snd_aes_iec958_t *iec958; PyObject *t, *v; -- 2.47.1