diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2009-01-25 22:25:06 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2009-01-25 22:25:06 (GMT) |
commit | 1e2d8700d6707c22ab101b271df89ca4f12b1b22 (patch) | |
tree | c538edd7b25a834a7097827c97f70f59001d2984 /Objects/longobject.c | |
parent | 97d3aa50b78ea62728d5767b426c9c6e2fae11cb (diff) | |
download | cpython-1e2d8700d6707c22ab101b271df89ca4f12b1b22.zip cpython-1e2d8700d6707c22ab101b271df89ca4f12b1b22.tar.gz cpython-1e2d8700d6707c22ab101b271df89ca4f12b1b22.tar.bz2 |
Merged revisions 68947 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r68947 | mark.dickinson | 2009-01-25 22:12:31 +0000 (Sun, 25 Jan 2009) | 3 lines
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/longobject.c')
-rw-r--r-- | Objects/longobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/longobject.c b/Objects/longobject.c index 7a3be9e..0493dbc 100644 --- a/Objects/longobject.c +++ b/Objects/longobject.c @@ -776,7 +776,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 */ |