From: Tim Peters Date: Wed, 13 Jun 2001 21:09:15 +0000 (+0000) Subject: _PyLong_FromByteArray: changed decl of "carry" to match "thisbyte". No X-Git-Tag: v2.2a3~1557 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f251d06a66dcadd4d64c6b4d2b3608f33c8a1868;p=python _PyLong_FromByteArray: changed decl of "carry" to match "thisbyte". No semantic change, but a bit clearer and may help a really stupid compiler avoid pointless runtime length conversions. --- diff --git a/Objects/longobject.c b/Objects/longobject.c index 44819701bb..93044ee726 100644 --- a/Objects/longobject.c +++ b/Objects/longobject.c @@ -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;