summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2002-09-13 13:47:06 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2002-09-13 13:47:06 (GMT)
commita0378e1eda4efb9861b66e28b69d42e02d9ad845 (patch)
treed9fd3ba28ca5f00d3117cc75b0b1eb7d26220542
parent89841bda653e5cd2ba8c23759c5e4659fb83cbe5 (diff)
downloadcpython-a0378e1eda4efb9861b66e28b69d42e02d9ad845.zip
cpython-a0378e1eda4efb9861b66e28b69d42e02d9ad845.tar.gz
cpython-a0378e1eda4efb9861b66e28b69d42e02d9ad845.tar.bz2
Fix part of SF bug # 544248 gcc warning in unicodeobject.c
When --enable-unicode=ucs4, need to cast Py_UNICODE to a char
-rw-r--r--Objects/unicodeobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index dde6b47..7f4c312 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;