summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2002-08-12 22:10:00 (GMT)
committerTim Peters <tim.peters@gmail.com>2002-08-12 22:10:00 (GMT)
commit120340374383e4f246fe71e7013a7711104bb8a9 (patch)
tree1895cad552c5c6a23d4b7168f1a34222b72e9cbf /Objects
parent918af2aef717a3f9db50bcd0752672916556dfa0 (diff)
downloadcpython-120340374383e4f246fe71e7013a7711104bb8a9.zip
cpython-120340374383e4f246fe71e7013a7711104bb8a9.tar.gz
cpython-120340374383e4f246fe71e7013a7711104bb8a9.tar.bz2
k_lopsided_mul(): This allocated more space for bslice than necessary.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/longobject.c2
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;