]> granicus.if.org Git - python/commitdiff
Silence last compilation warning.
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>
Mon, 23 Jan 2012 22:20:43 +0000 (23:20 +0100)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>
Mon, 23 Jan 2012 22:20:43 +0000 (23:20 +0100)
Python/formatter_unicode.c

index db8c27c9e48a7982c1a90ceb50ccad7623beac11..eee99134adc083cbe6e88fcfcdddbae6b752816b 100644 (file)
@@ -798,7 +798,7 @@ format_int_or_long_internal(PyObject *value, const InternalFormatSpec *format,
         tmp = PyUnicode_FromOrdinal(x);
         inumeric_chars = 0;
         n_digits = 1;
-        maxchar = Py_MAX(maxchar, x);
+        maxchar = Py_MAX(maxchar, (Py_UCS4)x);
 
         /* As a sort-of hack, we tell calc_number_widths that we only
            have "remainder" characters. calc_number_widths thinks