mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
k_mul(): Heh -- I checked in two fixes for the last problem. Only keep
the good one <wink>. Also checked in a test-aid by mistake.
This commit is contained in:
parent
d8b2173ef9
commit
70b041bbe7
1 changed files with 2 additions and 2 deletions
|
@ -1663,7 +1663,7 @@ k_mul(PyLongObject *a, PyLongObject *b)
|
|||
*/
|
||||
|
||||
/* 1. Allocate result space. */
|
||||
ret = _PyLong_New(asize + bsize + 1);
|
||||
ret = _PyLong_New(asize + bsize);
|
||||
if (ret == NULL) goto fail;
|
||||
#ifdef Py_DEBUG
|
||||
/* Fill with trash, to catch reference to uninitialized digits. */
|
||||
|
@ -1769,7 +1769,7 @@ long_mul(PyLongObject *v, PyLongObject *w)
|
|||
return Py_NotImplemented;
|
||||
}
|
||||
|
||||
#if 1
|
||||
#if 0
|
||||
if (Py_GETENV("KARAT") != NULL)
|
||||
z = k_mul(a, b);
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue