]> granicus.if.org Git - python/commitdiff
Silence compiler warning
authorMark Dickinson <dickinsm@gmail.com>
Sun, 27 Sep 2009 15:53:49 +0000 (15:53 +0000)
committerMark Dickinson <dickinsm@gmail.com>
Sun, 27 Sep 2009 15:53:49 +0000 (15:53 +0000)
Objects/stringlib/formatter.h

index df291584e79b3dbd3dbdc649c95157e6414d277c..d8e66a6c8f4ef2ebe83593dc627759ca62d24316 100644 (file)
@@ -31,7 +31,7 @@ unknown_presentation_type(STRINGLIB_CHAR presentation_type,
         PyErr_Format(PyExc_ValueError,
                      "Unknown format code '%c' "
                      "for object of type '%.200s'",
-                     presentation_type,
+                     (char)presentation_type,
                      type_name);
 #if STRINGLIB_IS_UNICODE
     else