]> granicus.if.org Git - python/commitdiff
Fix signed/unsigned compiler warning.
authorRaymond Hettinger <python@rcn.com>
Wed, 10 Jun 2009 16:15:40 +0000 (16:15 +0000)
committerRaymond Hettinger <python@rcn.com>
Wed, 10 Jun 2009 16:15:40 +0000 (16:15 +0000)
Modules/audioop.c

index 767cae64e9b56b2023e3a24a7cb5d0a1148cb6e7..42daf9bd06e7c07515e4fae7fac3dff9876a8479 100644 (file)
@@ -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;