Mercurial > cpython-lru_cache-weakref
diff Objects/unicodeobject.c @ 25248:fc2b73802f7b legacy-trunk
Fix part of SF bug # 544248 gcc warning in unicodeobject.c
When --enable-unicode=ucs4, need to cast Py_UNICODE to a char
| author | Neal Norwitz <nnorwitz@gmail.com> |
|---|---|
| date | Fri, 13 Sep 2002 13:47:06 +0000 |
| parents | 8d751b62ecc4 |
| children | 4df0e691f4da |
line wrap: on
line diff
--- a/Objects/unicodeobject.c Thu Sep 12 22:35:45 2002 +0000 +++ b/Objects/unicodeobject.c Fri Sep 13 13:47:06 2002 +0000 @@ -6464,7 +6464,7 @@ PyErr_Format(PyExc_ValueError, "unsupported format character '%c' (0x%x) " "at index %i", - (31<=c && c<=126) ? c : '?', + (31<=c && c<=126) ? (char)c : '?', c, (int)(fmt -1 - PyUnicode_AS_UNICODE(uformat))); goto onError;
