mirror of https://github.com/python/cpython
Silence compiler warning
This commit is contained in:
parent
ec5c8b8e9b
commit
1f7e18cd74
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue