[Python-checkins] cpython: Silence last compilation warning.

amaury.forgeotdarc python-checkins at python.org
Mon Jan 23 23:21:03 CET 2012


http://hg.python.org/cpython/rev/728cfc671d15
changeset:   74586:728cfc671d15
user:        Amaury Forgeot d'Arc <amauryfa at gmail.com>
date:        Mon Jan 23 23:20:43 2012 +0100
summary:
  Silence last compilation warning.

files:
  Python/formatter_unicode.c |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Python/formatter_unicode.c b/Python/formatter_unicode.c
--- a/Python/formatter_unicode.c
+++ b/Python/formatter_unicode.c
@@ -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

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list