]> granicus.if.org Git - python/commitdiff
_PyLong_FromByteArray: changed decl of "carry" to match "thisbyte". No
authorTim Peters <tim.peters@gmail.com>
Wed, 13 Jun 2001 21:09:15 +0000 (21:09 +0000)
committerTim Peters <tim.peters@gmail.com>
Wed, 13 Jun 2001 21:09:15 +0000 (21:09 +0000)
semantic change, but a bit clearer and may help a really stupid compiler
avoid pointless runtime length conversions.

Objects/longobject.c

index 44819701bbef8f69a92a3f56c5ecc7ea1cafb9b0..93044ee726c7ed200d8eac51b7673204ac06230b 100644 (file)
@@ -278,7 +278,7 @@ _PyLong_FromByteArray(const unsigned char* bytes, size_t n,
           8-bit bytes and (probably) 15-bit Python digits.*/
        {
                size_t i;
-               unsigned int carry = 1;         /* for 2's-comp calculation */
+               twodigits carry = 1;            /* for 2's-comp calculation */
                twodigits accum = 0;            /* sliding register */
                unsigned int accumbits = 0;     /* number of bits in accum */
                const unsigned char* p = pstartbyte;