From: Raymond Hettinger Date: Sat, 16 May 2009 01:46:11 +0000 (+0000) Subject: Silence compiler warning. X-Git-Tag: v3.1rc1~137 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=afdfbc72fb58dd01200573728e603b3da246c6e6;p=thirdparty%2FPython%2Fcpython.git Silence compiler warning. --- diff --git a/Modules/audioop.c b/Modules/audioop.c index b2fdb9a3c72e..0acf67248541 100644 --- a/Modules/audioop.c +++ b/Modules/audioop.c @@ -1121,7 +1121,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;