]> git.alsa-project.org Git - alsa-python.git/commitdiff
hcontrol: fix variable type
authorClemens Ladisch <clemens@ladisch.de>
Mon, 12 Oct 2009 06:46:11 +0000 (08:46 +0200)
committerClemens Ladisch <clemens@ladisch.de>
Mon, 12 Oct 2009 06:46:11 +0000 (08:46 +0200)
The last parameter of PyString_AsStringAndSize is Py_ssize_t, not int.
This shuts up a compiler warning.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
pyalsa/alsahcontrol.c

index bb853e7432ed4954bf905d8326b46954e2067732..68d822884afe3789ab4c9f5aaaafd4af10a47cab 100644 (file)
@@ -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;