Mercurial > cpython-lru_cache-weakref
diff Python/formatter_unicode.c @ 74586:728cfc671d15
Silence last compilation warning.
| author | Amaury Forgeot d'Arc <amauryfa@gmail.com> |
|---|---|
| date | Mon, 23 Jan 2012 23:20:43 +0100 |
| parents | 04b565d912c2 |
| children | 056f5cc8885d |
line wrap: on
line diff
--- a/Python/formatter_unicode.c Mon Jan 23 22:42:19 2012 +0100 +++ b/Python/formatter_unicode.c Mon Jan 23 23:20:43 2012 +0100 @@ -798,7 +798,7 @@ 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
