STINNER Victor <vstin...@redhat.com> added the comment:

Oh, fbound() cast to (int) has been done by... myself :-D

commit f2b9a340ef143099726fb642951410e4ad793c7f
Author: Victor Stinner <victor.stin...@gmail.com>
Date:   Tue May 7 23:49:15 2013 +0200

    audioop: explicit cast to fix a compiler warning

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


Stupid me!

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue33781>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to