Commit 1afe6ddd authored by Mark Dickinson's avatar Mark Dickinson

No need for carry to be type twodigits in _PyLong_AsByteArray; digit is large enough.

This change should silence a compiler warning on Windows.
parent 7c28be8d
......@@ -547,7 +547,7 @@ _PyLong_AsByteArray(PyLongObject* v,
twodigits accum; /* sliding register */
unsigned int accumbits; /* # bits in accum */
int do_twos_comp; /* store 2's-comp? is_signed and v < 0 */
twodigits carry; /* for computing 2's-comp */
digit carry; /* for computing 2's-comp */
size_t j; /* # bytes filled */
unsigned char* p; /* pointer to next byte in bytes */
int pincr; /* direction to move p */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment