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.
........
This commit is contained in:
Mark Dickinson 2009-01-25 22:25:06 +00:00
parent 97d3aa50b7
commit 1e2d8700d6
1 changed files with 1 additions and 1 deletions

View File

@ -776,7 +776,7 @@ _PyLong_AsByteArray(PyLongObject* v,
twodigits accum; /* sliding register */ twodigits accum; /* sliding register */
unsigned int accumbits; /* # bits in accum */ unsigned int accumbits; /* # bits in accum */
int do_twos_comp; /* store 2's-comp? is_signed and v < 0 */ 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 */ size_t j; /* # bytes filled */
unsigned char* p; /* pointer to next byte in bytes */ unsigned char* p; /* pointer to next byte in bytes */
int pincr; /* direction to move p */ int pincr; /* direction to move p */