Silence compiler warning

This commit is contained in:
Mark Dickinson 2009-09-24 18:31:17 +00:00
parent ec5c8b8e9b
commit 1f7e18cd74
1 changed files with 2 additions and 1 deletions

View File

@ -1834,7 +1834,8 @@ _PyLong_Format(PyObject *aa, int base)
accumbits += PyLong_SHIFT;
assert(accumbits >= bits);
do {
Py_UNICODE cdigit = accum & (base - 1);
Py_UNICODE cdigit;
cdigit = (Py_UNICODE)(accum & (base - 1));
cdigit += (cdigit < 10) ? '0' : 'a'-10;
assert(p > PyUnicode_AS_UNICODE(str));
*--p = cdigit;