From 1672dc60ec6125956dff1e1996fa60b3b4c99d03 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Wed, 10 Jun 2009 16:15:40 +0000 Subject: Fix signed/unsigned compiler warning. --- Modules/audioop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/audioop.c b/Modules/audioop.c index 767cae6..42daf9b 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; -- cgit v0.12