diff options
author | Tim Peters <tim.peters@gmail.com> | 2002-08-12 22:10:00 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2002-08-12 22:10:00 (GMT) |
commit | 120340374383e4f246fe71e7013a7711104bb8a9 (patch) | |
tree | 1895cad552c5c6a23d4b7168f1a34222b72e9cbf | |
parent | 918af2aef717a3f9db50bcd0752672916556dfa0 (diff) | |
download | cpython-120340374383e4f246fe71e7013a7711104bb8a9.zip cpython-120340374383e4f246fe71e7013a7711104bb8a9.tar.gz cpython-120340374383e4f246fe71e7013a7711104bb8a9.tar.bz2 |
k_lopsided_mul(): This allocated more space for bslice than necessary.
-rw-r--r-- | Objects/longobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/longobject.c b/Objects/longobject.c index 3cc6f13..bb02c9c 100644 --- a/Objects/longobject.c +++ b/Objects/longobject.c @@ -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; |