From: Raymond Hettinger Date: Wed, 10 Jun 2009 16:15:40 +0000 (+0000) Subject: Fix signed/unsigned compiler warning. X-Git-Tag: v2.7a1~988 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1672dc60ec6125956dff1e1996fa60b3b4c99d03;p=thirdparty%2FPython%2Fcpython.git Fix signed/unsigned compiler warning. --- diff --git a/Modules/audioop.c b/Modules/audioop.c index 767cae64e9b5..42daf9bd06e7 100644 --- a/Modules/audioop.c +++ b/Modules/audioop.c @@ -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;