Commit 1f7e18cd authored by Mark Dickinson's avatar Mark Dickinson

Silence compiler warning

parent ec5c8b8e
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment