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: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=afdfbc72fb58dd01200573728e603b3da246c6e6;p=python Silence compiler warning. --- diff --git a/Modules/audioop.c b/Modules/audioop.c index b2fdb9a3c7..0acf672485 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;