Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f251d06

Browse files
committed
_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.
1 parent 05607ad commit f251d06

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Objects/longobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ _PyLong_FromByteArray(const unsigned char* bytes, size_t n,
278278
8-bit bytes and (probably) 15-bit Python digits.*/
279279
{
280280
size_t i;
281-
unsigned int carry = 1; /* for 2's-comp calculation */
281+
twodigits carry = 1; /* for 2's-comp calculation */
282282
twodigits accum = 0; /* sliding register */
283283
unsigned int accumbits = 0; /* number of bits in accum */
284284
const unsigned char* p = pstartbyte;

0 commit comments

Comments
 (0)