summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-01-25 22:12:31 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2009-01-25 22:12:31 (GMT)
commit1afe6ddd07c892cadc38b2a6100265ce0fea7365 (patch)
treeab45a3010fb3063a9f4e8a9d9859f8e377d062f3 /Objects
parent7c28be8df5f990eb00ba7d3a1b72cb66935bbe7d (diff)
downloadcpython-1afe6ddd07c892cadc38b2a6100265ce0fea7365.zip
cpython-1afe6ddd07c892cadc38b2a6100265ce0fea7365.tar.gz
cpython-1afe6ddd07c892cadc38b2a6100265ce0fea7365.tar.bz2
No need for carry to be type twodigits in _PyLong_AsByteArray; digit is large enough.
This change should silence a compiler warning on Windows.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/longobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/longobject.c b/Objects/longobject.c
index 9c1c30e..0a320e6 100644
--- a/Objects/longobject.c
+++ b/Objects/longobject.c
@@ -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 */