[Python-checkins] r68947 - python/trunk/Objects/longobject.c

mark.dickinson python-checkins at python.org
Sun Jan 25 23:12:32 CET 2009


Author: mark.dickinson
Date: Sun Jan 25 23:12:31 2009
New Revision: 68947

Log:
No need for carry to be type twodigits in _PyLong_AsByteArray; digit is large enough.
This change should silence a compiler warning on Windows.


Modified:
   python/trunk/Objects/longobject.c

Modified: python/trunk/Objects/longobject.c
==============================================================================
--- python/trunk/Objects/longobject.c	(original)
+++ python/trunk/Objects/longobject.c	Sun Jan 25 23:12:31 2009
@@ -547,7 +547,7 @@
 	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 */


More information about the Python-checkins mailing list