From 1b651fcde8ab629a8ac1fa1b110800000d9e6e85 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marc-Andr=C3=A9=20Lemburg?= Date: Tue, 24 Sep 2002 09:29:44 +0000 Subject: [PATCH] Fix cast from backport. --- Objects/unicodeobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 83cd7ed00220..a0b10f02e167 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -5641,7 +5641,7 @@ PyObject *PyUnicode_Format(PyObject *format, PyErr_Format(PyExc_ValueError, "unsupported format character '%c' (0x%x) " "at index %i", - (31<=c && c<=126) ? (int)c : '?', + (31<=c && c<=126) ? (char)c : '?', (int)c, (int)(fmt -1 - PyUnicode_AS_UNICODE(uformat))); goto onError; -- 2.47.3