From: Clemens Ladisch Date: Mon, 12 Oct 2009 06:46:11 +0000 (+0200) Subject: hcontrol: fix variable type X-Git-Tag: v1.0.22~5 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=a5dcdc9a0c2157fd2f89c4166a238b02e5cf2d0e;p=alsa-python.git 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 --- 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;