]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-33781: audioop: enhance rounding double as int (GH-7447) (GH-7452)
authorVictor Stinner <vstinner@redhat.com>
Wed, 6 Jun 2018 15:12:39 +0000 (17:12 +0200)
committerGitHub <noreply@github.com>
Wed, 6 Jun 2018 15:12:39 +0000 (17:12 +0200)
commitb17d409bc0458e3981987c2358da661f228f5891
tree1aef82c17d72101923d1ea0d53f9d313f377d7bd
parentd098098ce1dcb02d18571551654cbe7b92d291a4
bpo-33781: audioop: enhance rounding double as int (GH-7447) (GH-7452)

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)
Modules/audioop.c