[Python-checkins] r72674 - python/branches/py3k/Modules/audioop.c

raymond.hettinger python-checkins at python.org
Sat May 16 03:46:11 CEST 2009


Author: raymond.hettinger
Date: Sat May 16 03:46:11 2009
New Revision: 72674

Log:
Silence compiler warning.

Modified:
   python/branches/py3k/Modules/audioop.c

Modified: python/branches/py3k/Modules/audioop.c
==============================================================================
--- python/branches/py3k/Modules/audioop.c	(original)
+++ python/branches/py3k/Modules/audioop.c	Sat May 16 03:46:11 2009
@@ -1121,7 +1121,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