diff --git a/Objects/longobject.c b/Objects/longobject.c index 899c9405bf7..5b7a00aa9fc 100644 --- a/Objects/longobject.c +++ b/Objects/longobject.c @@ -883,10 +883,10 @@ long_format(PyObject *aa, int base, int addL) accumbits += SHIFT; assert(accumbits >= basebits); do { - char digit = (char)(accum & (base - 1)); - digit += (digit < 10) ? '0' : 'A'-10; + char cdigit = (char)(accum & (base - 1)); + cdigit += (cdigit < 10) ? '0' : 'A'-10; assert(p > PyString_AS_STRING(str)); - *--p = digit; + *--p = cdigit; accumbits -= basebits; accum >>= basebits; } while (i < size_a-1 ? accumbits >= basebits :