]> granicus.if.org Git - python/commit
bpo-33781: audioop: enhance rounding double as int (GH-7447)
authorVictor Stinner <vstinner@redhat.com>
Wed, 6 Jun 2018 13:50:50 +0000 (15:50 +0200)
committerGitHub <noreply@github.com>
Wed, 6 Jun 2018 13:50:50 +0000 (15:50 +0200)
commit45e4efba7fa2abe61d25e4f8b5bf482e19ff1280
treeb4e61cf5ef52b562e0aec7bb0a3c859dd0bd0496
parent36c60fb2567a26ab23b533530d57d86207b91eea
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.
Modules/audioop.c