]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Merged revisions 68947 via svnmerge from
authorMark Dickinson <dickinsm@gmail.com>
Sun, 25 Jan 2009 22:20:39 +0000 (22:20 +0000)
committerMark Dickinson <dickinsm@gmail.com>
Sun, 25 Jan 2009 22:20:39 +0000 (22:20 +0000)
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.
........

Objects/longobject.c

index 4cf80c01384756897269c5e6f90f563493535cce..f19425d755c1a49a52aeb967f74c7bc9c0349139 100644 (file)
@@ -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 */