Skip to content

Commit 7b5c1fe

Browse files
author
mark.dickinson
committed
No need for carry to be type twodigits in _PyLong_AsByteArray; digit is large enough.
This change should silence a compiler warning on Windows. git-svn-id: http://svn.python.org/projects/python/trunk@68947 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent a08b48e commit 7b5c1fe

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
@@ -547,7 +547,7 @@ _PyLong_AsByteArray(PyLongObject* v,
547547
twodigits accum; /* sliding register */
548548
unsigned int accumbits; /* # bits in accum */
549549
int do_twos_comp; /* store 2's-comp? is_signed and v < 0 */
550-
twodigits carry; /* for computing 2's-comp */
550+
digit carry; /* for computing 2's-comp */
551551
size_t j; /* # bytes filled */
552552
unsigned char* p; /* pointer to next byte in bytes */
553553
int pincr; /* direction to move p */

0 commit comments

Comments
 (0)