Kaydet (Commit) 1672dc60 authored tarafından Raymond Hettinger's avatar Raymond Hettinger

Fix signed/unsigned compiler warning.

üst 1917ad58
...@@ -1116,7 +1116,7 @@ audioop_ratecv(PyObject *self, PyObject *args) ...@@ -1116,7 +1116,7 @@ audioop_ratecv(PyObject *self, PyObject *args)
outrate /= d; outrate /= d;
alloc_size = sizeof(int) * (unsigned)nchannels; alloc_size = sizeof(int) * (unsigned)nchannels;
if (alloc_size < nchannels) { if (alloc_size < (unsigned)nchannels) {
PyErr_SetString(PyExc_MemoryError, PyErr_SetString(PyExc_MemoryError,
"not enough memory for output buffer"); "not enough memory for output buffer");
return 0; 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