New submission from David Moore:
Hi -
During a code review of Modules/audioop.c I noted that weightB is never divided
by the GCD while weightA is divided twice. This is contrary to the comment and
appears to be a bug:
/* divide weightA and weightB by their greatest common divisor */
d = gcd(weightA, weightB);
weightA /= d;
weightA /= d;
The patch file below (hg diff) fixes this issue.
----------
components: Extension Modules
files: audioop.patch
keywords: patch
messages: 244392
nosy: David Moore
priority: normal
severity: normal
status: open
title: Audioop: weightB not divided by GCD, weightA divided twice
type: behavior
versions: Python 3.6
Added file: http://bugs.python.org/file39549/audioop.patch
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue24326>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com