diff options
Diffstat (limited to 'Objects/unicodeobject.c')
-rw-r--r-- | Objects/unicodeobject.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index dab3a75..dde6b47 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -6465,7 +6465,8 @@ PyObject *PyUnicode_Format(PyObject *format, "unsupported format character '%c' (0x%x) " "at index %i", (31<=c && c<=126) ? c : '?', - c, fmt -1 - PyUnicode_AS_UNICODE(uformat)); + c, + (int)(fmt -1 - PyUnicode_AS_UNICODE(uformat))); goto onError; } if (sign) { |