From: Marc-André Lemburg Date: Tue, 24 Sep 2002 09:32:14 +0000 (+0000) Subject: Add cast to avoid compiler warning. X-Git-Tag: v2.3c1~4000 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=24e53b6d919ccb1c35286701fd39e8eb10a50282;p=python Add cast to avoid compiler warning. --- diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 7f4c312053..eb8ee61ba9 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -6465,7 +6465,7 @@ PyObject *PyUnicode_Format(PyObject *format, "unsupported format character '%c' (0x%x) " "at index %i", (31<=c && c<=126) ? (char)c : '?', - c, + (int)c, (int)(fmt -1 - PyUnicode_AS_UNICODE(uformat))); goto onError; }