]> granicus.if.org Git - python/commitdiff
Add cast to avoid compiler warning.
authorMarc-André Lemburg <mal@egenix.com>
Tue, 24 Sep 2002 09:32:14 +0000 (09:32 +0000)
committerMarc-André Lemburg <mal@egenix.com>
Tue, 24 Sep 2002 09:32:14 +0000 (09:32 +0000)
Objects/unicodeobject.c

index 7f4c312053327b26e2260526b81a65422928e6c9..eb8ee61ba929939a75c98760f9784e4c275d7c6f 100644 (file)
@@ -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;
            }