Commit 1672dc60 authored by Raymond Hettinger's avatar Raymond Hettinger

Fix signed/unsigned compiler warning.

parent 1917ad58
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment