Mercurial > cpython-lru_cache-weakref
diff Objects/longobject.c @ 51050:c851ed0cf65f legacy-trunk
No need for carry to be type twodigits in _PyLong_AsByteArray; digit is large enough.
This change should silence a compiler warning on Windows.
| author | Mark Dickinson <dickinsm@gmail.com> |
|---|---|
| date | Sun, 25 Jan 2009 22:12:31 +0000 |
| parents | 4eac9941538c |
| children | 200829255a6a |
line wrap: on
line diff
--- a/Objects/longobject.c Sun Jan 25 22:11:04 2009 +0000 +++ b/Objects/longobject.c Sun Jan 25 22:12:31 2009 +0000 @@ -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 */
