]> granicus.if.org Git - python/commit
bpo-33781: audioop: enhance rounding double as int (GH-7447)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 6 Jun 2018 14:33:05 +0000 (07:33 -0700)
committerGitHub <noreply@github.com>
Wed, 6 Jun 2018 14:33:05 +0000 (07:33 -0700)
commit5c022f13ab6db8929e092ad035b3dc61701e3198
tree8220325528e722b0c72fe4232f99b7997929c2fa
parent9aa1e721e1b8e557b3926ac168b303e728a90ea0
bpo-33781: audioop: enhance rounding double as int (GH-7447)

Move the floor() call into fbound() to call floor() on a double
rather than an int. The change should enhance the rounding.

Document also (int)double rounding mode.
(cherry picked from commit 45e4efba7fa2abe61d25e4f8b5bf482e19ff1280)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
Modules/audioop.c