[Python-checkins] cpython: Fix compilation warnings (seen on win32 buildbot)

amaury.forgeotdarc python-checkins at python.org
Mon Jan 23 22:42:41 CET 2012


http://hg.python.org/cpython/rev/04b565d912c2
changeset:   74585:04b565d912c2
parent:      74583:a378922691e5
user:        Amaury Forgeot d'Arc <amauryfa at gmail.com>
date:        Mon Jan 23 22:42:19 2012 +0100
summary:
  Fix compilation warnings (seen on win32 buildbot)

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


diff --git a/Python/formatter_unicode.c b/Python/formatter_unicode.c
--- a/Python/formatter_unicode.c
+++ b/Python/formatter_unicode.c
@@ -682,7 +682,7 @@
     Py_ssize_t pos;
     Py_ssize_t len = PyUnicode_GET_LENGTH(value);
     PyObject *result = NULL;
-    int maxchar = 127;
+    Py_UCS4 maxchar = 127;
 
     /* sign is not allowed on strings */
     if (format->sign != '\0') {
@@ -749,7 +749,7 @@
                             IntOrLongToString tostring)
 {
     PyObject *result = NULL;
-    int maxchar = 127;
+    Py_UCS4 maxchar = 127;
     PyObject *tmp = NULL;
     Py_ssize_t inumeric_chars;
     Py_UCS4 sign_char = '\0';
@@ -926,7 +926,7 @@
     NumberFieldWidths spec;
     int flags = 0;
     PyObject *result = NULL;
-    int maxchar = 127;
+    Py_UCS4 maxchar = 127;
     Py_UCS4 sign_char = '\0';
     int float_type; /* Used to see if we have a nan, inf, or regular float. */
     PyObject *unicode_tmp = NULL;
@@ -1070,7 +1070,7 @@
     NumberFieldWidths im_spec;
     int flags = 0;
     PyObject *result = NULL;
-    int maxchar = 127;
+    Py_UCS4 maxchar = 127;
     int rkind;
     void *rdata;
     Py_ssize_t index;

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


More information about the Python-checkins mailing list