]> granicus.if.org Git - python/commit
bpo-33781: audioop: enhance rounding double as int (GH-7447) (GH-7451)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 6 Jun 2018 15:18:27 +0000 (08:18 -0700)
committerVictor Stinner <vstinner@redhat.com>
Wed, 6 Jun 2018 15:18:27 +0000 (17:18 +0200)
commit2bc1946fb02e140f5f5ac21a1afa2763615ad16b
treeb3ee03a6c0168d8163f6fd1d9a13ab89adb513ea
parent08c03cca59295340bdfca437214971e30a596585
bpo-33781: audioop: enhance rounding double as int (GH-7447) (GH-7451)

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