summaryrefslogtreecommitdiff
path: root/Python/formatter_unicode.c
diff options
context:
space:
mode:
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>2012-01-23 23:20:43 +0100
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>2012-01-23 23:20:43 +0100
commit597ed82954be94ee0d4cf498586e4eb4e4c301aa (patch)
tree034b9bc7f9e030d5aeed948d84dc0b29def1afea /Python/formatter_unicode.c
parent9d06170f8ed5c860eaf1ba30fb10e4e8a5e79b6b (diff)
downloadcpython-597ed82954be94ee0d4cf498586e4eb4e4c301aa.tar.gz
Silence last compilation warning.
Diffstat (limited to 'Python/formatter_unicode.c')
-rw-r--r--Python/formatter_unicode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/formatter_unicode.c b/Python/formatter_unicode.c
index db8c27c9e4..eee99134ad 100644
--- a/Python/formatter_unicode.c
+++ b/Python/formatter_unicode.c
@@ -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