This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author grajagandev
Recipients grajagandev
Date 2015-05-29.17:20:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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.
Date User Action Args
2015-05-29 17:20:05grajagandevsetrecipients: + grajagandev
2015-05-29 17:20:05grajagandevsetmessageid: <>
2015-05-29 17:20:05grajagandevlinkissue24326 messages
2015-05-29 17:20:05grajagandevcreate