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
commit6d766fc3facd08615cd3cfe5699e864f196941b5 (patch)
tree10c7d48469c6e4b58a49770f85df429d8ef412da /Python/formatter_unicode.c
parentcd27df3a9923c8c05b57f3f2a142cafd978220a2 (diff)
downloadcpython-git-6d766fc3facd08615cd3cfe5699e864f196941b5.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