[Python-checkins] cpython: audioop: explicit cast to fix a compiler warning

victor.stinner python-checkins at python.org
Tue May 7 23:51:35 CEST 2013


http://hg.python.org/cpython/rev/41cf9f488225
changeset:   83674:41cf9f488225
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Tue May 07 23:49:15 2013 +0200
summary:
  audioop: explicit cast to fix a compiler warning

files:
  Modules/audioop.c |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Modules/audioop.c b/Modules/audioop.c
--- a/Modules/audioop.c
+++ b/Modules/audioop.c
@@ -37,7 +37,7 @@
         val = maxval;
     else if (val < minval + 1)
         val = minval;
-    return val;
+    return (int)val;
 }
 
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list