From: Neal Norwitz Date: Fri, 13 Sep 2002 13:47:06 +0000 (+0000) Subject: Fix part of SF bug # 544248 gcc warning in unicodeobject.c X-Git-Tag: v2.3c1~4097 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a0378e1eda4efb9861b66e28b69d42e02d9ad845;p=thirdparty%2FPython%2Fcpython.git Fix part of SF bug # 544248 gcc warning in unicodeobject.c When --enable-unicode=ucs4, need to cast Py_UNICODE to a char --- diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index dde6b4704aa4..7f4c31205332 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -6464,7 +6464,7 @@ PyObject *PyUnicode_Format(PyObject *format, 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;