]> granicus.if.org Git - python/commitdiff
k_lopsided_mul(): This allocated more space for bslice than necessary.
authorTim Peters <tim.peters@gmail.com>
Mon, 12 Aug 2002 22:10:00 +0000 (22:10 +0000)
committerTim Peters <tim.peters@gmail.com>
Mon, 12 Aug 2002 22:10:00 +0000 (22:10 +0000)
Objects/longobject.c

index 3cc6f138e18d734839b3d716c69d1793bae26dbb..bb02c9c9134b925783685a4af2da4642f5fd797d 100644 (file)
@@ -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;