From a0378e1eda4efb9861b66e28b69d42e02d9ad845 Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Fri, 13 Sep 2002 13:47:06 +0000 Subject: [PATCH] Fix part of SF bug # 544248 gcc warning in unicodeobject.c When --enable-unicode=ucs4, need to cast Py_UNICODE to a char --- Objects/unicodeobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index dde6b4704aa..7f4c3120533 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;