Import from divmod. Original log message:

r1269 | anthony | 2005-03-17 07:18:47 +0100 (Thu, 17 Mar 2005) | 1 line

make write() return the number of bytes actually written



git-svn-id: svn://svn.code.sf.net/p/pyalsaaudio/code/trunk@8 ec2f30ec-7544-0410-870e-f70ca00c83f0
This commit is contained in:
larsimmisch
2008-01-24 11:25:47 +00:00
parent a0f5bc1548
commit 1c9229226c

View File

@@ -377,7 +377,7 @@ static PyObject *alsapcm_write(alsapcm_t *self, PyObject *args) {
PyErr_SetString(ALSAAudioError,snd_strerror(res));
return NULL;
}
return PyInt_FromLong(datalen);
return PyInt_FromLong(res);
}