diff options
Diffstat (limited to 'Objects/longobject.c')
-rw-r--r-- | Objects/longobject.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Objects/longobject.c b/Objects/longobject.c index 899c940..5b7a00a 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 : |