commit | 1f7e18cd744c106a889e05c56b0bdc03c1070faf | [log] [tgz] |
---|---|---|
author | Mark Dickinson <dickinsm@gmail.com> | Thu Sep 24 18:31:17 2009 +0000 |
committer | Mark Dickinson <dickinsm@gmail.com> | Thu Sep 24 18:31:17 2009 +0000 |
tree | d8f0462a69ddd6bd93b90843bc5e53585972de92 | |
parent | ec5c8b8e9b30551f8d800510ad3e8f289a1521cc [diff] |
Silence compiler warning
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 @@ 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;