diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2009-09-24 18:31:17 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2009-09-24 18:31:17 (GMT) |
commit | 1f7e18cd744c106a889e05c56b0bdc03c1070faf (patch) | |
tree | d8f0462a69ddd6bd93b90843bc5e53585972de92 /Objects | |
parent | ec5c8b8e9b30551f8d800510ad3e8f289a1521cc (diff) | |
download | cpython-1f7e18cd744c106a889e05c56b0bdc03c1070faf.zip cpython-1f7e18cd744c106a889e05c56b0bdc03c1070faf.tar.gz cpython-1f7e18cd744c106a889e05c56b0bdc03c1070faf.tar.bz2 |
Silence compiler warning
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/longobject.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Objects/longobject.c b/Objects/longobject.c index f7df699..abddbc4 100644 --- a/Objects/longobject.c +++ b/Objects/longobject.c @@ -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; |