[Python-checkins] r73335 - python/trunk/Modules/audioop.c

raymond.hettinger python-checkins at python.org
Wed Jun 10 18:15:40 CEST 2009


Author: raymond.hettinger
Date: Wed Jun 10 18:15:40 2009
New Revision: 73335

Log:
Fix signed/unsigned compiler warning.

Modified:
   python/trunk/Modules/audioop.c

Modified: python/trunk/Modules/audioop.c
==============================================================================
--- python/trunk/Modules/audioop.c	(original)
+++ python/trunk/Modules/audioop.c	Wed Jun 10 18:15:40 2009
@@ -1116,7 +1116,7 @@
         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;


More information about the Python-checkins mailing list