mirror of
https://github.com/python/cpython.git
synced 2025-11-13 15:40:05 +00:00
Fix signed/unsigned compiler warning.
This commit is contained in:
parent
1917ad587f
commit
1672dc60ec
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue