Fix signed/unsigned compiler warning.

This commit is contained in:
Raymond Hettinger 2009-06-10 16:15:40 +00:00
parent 1917ad587f
commit 1672dc60ec

View file

@ -1116,7 +1116,7 @@ audioop_ratecv(PyObject *self, PyObject *args)
outrate /= d;
alloc_size = sizeof(int) * (unsigned)nchannels;
if (alloc_size < nchannels) {
if (alloc_size < (unsigned)nchannels) {
PyErr_SetString(PyExc_MemoryError,
"not enough memory for output buffer");
return 0;