]> granicus.if.org Git - python/commitdiff
Silence compiler warning.
authorRaymond Hettinger <python@rcn.com>
Sat, 16 May 2009 01:46:11 +0000 (01:46 +0000)
committerRaymond Hettinger <python@rcn.com>
Sat, 16 May 2009 01:46:11 +0000 (01:46 +0000)
Modules/audioop.c

index b2fdb9a3c72ec1613862acbfbcdef8c6706381c1..0acf672485414e27b4cfba2f6b7bb2d571069de6 100644 (file)
@@ -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;