mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
k_lopsided_mul(): This allocated more space for bslice than necessary.
This commit is contained in:
parent
918af2aef7
commit
1203403743
1 changed files with 1 additions and 1 deletions
|
|
@ -1785,7 +1785,7 @@ k_lopsided_mul(PyLongObject *a, PyLongObject *b)
|
|||
memset(ret->ob_digit, 0, ret->ob_size * sizeof(digit));
|
||||
|
||||
/* Successive slices of b are copied into bslice. */
|
||||
bslice = _PyLong_New(bsize);
|
||||
bslice = _PyLong_New(asize);
|
||||
if (bslice == NULL)
|
||||
goto fail;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue