Author vstinner
Recipients vstinner
Date 2018-06-06.11:02:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1528282936.66.0.592728768989.issue33781@psf.upfronthosting.co.za>
In-reply-to
Content
Oh, fbound() cast to (int) has been done by... myself :-D

commit f2b9a340ef143099726fb642951410e4ad793c7f
Author: Victor Stinner <victor.stinner@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!
History
Date User Action Args
2018-06-06 11:02:16vstinnersetrecipients: + vstinner
2018-06-06 11:02:16vstinnersetmessageid: <1528282936.66.0.592728768989.issue33781@psf.upfronthosting.co.za>
2018-06-06 11:02:16vstinnerlinkissue33781 messages
2018-06-06 11:02:16vstinnercreate