diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-05-29 21:57:21 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-05-29 21:57:21 (GMT) |
commit | a663121e10265bb4d05b715a262cb4c1d79da082 (patch) | |
tree | 483adf73f16198edfbb2ba6b277bc122a52f5314 /Modules/audioop.c | |
parent | 13f7723d8163f29465817e5aec17e8394b2c28ef (diff) | |
parent | 50451eb91232b0e90c677419db19ed7b33a698a9 (diff) | |
download | cpython-a663121e10265bb4d05b715a262cb4c1d79da082.zip cpython-a663121e10265bb4d05b715a262cb4c1d79da082.tar.gz cpython-a663121e10265bb4d05b715a262cb4c1d79da082.tar.bz2 |
Issue #24326: Fixed audioop.ratecv() with non-default weightB argument.
Original patch by David Moore.
Diffstat (limited to 'Modules/audioop.c')
-rw-r--r-- | Modules/audioop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/audioop.c b/Modules/audioop.c index d49596f..27220b2 100644 --- a/Modules/audioop.c +++ b/Modules/audioop.c @@ -1331,7 +1331,7 @@ audioop_ratecv_impl(PyModuleDef *module, Py_buffer *fragment, int width, /* divide weightA and weightB by their greatest common divisor */ d = gcd(weightA, weightB); weightA /= d; - weightA /= d; + weightB /= d; if ((size_t)nchannels > PY_SIZE_MAX/sizeof(int)) { PyErr_SetString(PyExc_MemoryError, |