diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-05-29 21:53:26 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-05-29 21:53:26 (GMT) |
commit | 50451eb91232b0e90c677419db19ed7b33a698a9 (patch) | |
tree | 1ae7204b62636db0c18f21b0a154a3b46c236bed /Modules | |
parent | 1ad08a5555c9bbaa834104e76de9dd1227f6e1e3 (diff) | |
download | cpython-50451eb91232b0e90c677419db19ed7b33a698a9.zip cpython-50451eb91232b0e90c677419db19ed7b33a698a9.tar.gz cpython-50451eb91232b0e90c677419db19ed7b33a698a9.tar.bz2 |
Issue #24326: Fixed audioop.ratecv() with non-default weightB argument.
Original patch by David Moore.
Diffstat (limited to 'Modules')
-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 2d287f2..0358147 100644 --- a/Modules/audioop.c +++ b/Modules/audioop.c @@ -1320,7 +1320,7 @@ audioop_ratecv_impl(PyModuleDef *module, Py_buffer *fragment, int width, int nch /* 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, |