]> granicus.if.org Git - python/commitdiff
k_mul(): Heh -- I checked in two fixes for the last problem. Only keep
authorTim Peters <tim.peters@gmail.com>
Mon, 12 Aug 2002 19:38:01 +0000 (19:38 +0000)
committerTim Peters <tim.peters@gmail.com>
Mon, 12 Aug 2002 19:38:01 +0000 (19:38 +0000)
the good one <wink>.  Also checked in a test-aid by mistake.

Objects/longobject.c

index 0f4910edd691746c353d3d58e1e010e4640bb8a0..95e32ce8f6c6c2ac24dfd086dfe96277957ee3c0 100644 (file)
@@ -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