summaryrefslogtreecommitdiffstats
path: root/Python/formatter_unicode.c
diff options
context:
space:
mode:
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>2012-01-23 21:42:19 (GMT)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>2012-01-23 21:42:19 (GMT)
commitcd27df3a9923c8c05b57f3f2a142cafd978220a2 (patch)
treec22c4d6444fa32701e0cc6b3a795bc6b499ddef9 /Python/formatter_unicode.c
parent5b45a013bcd0afcd3be46f994e2f5c29d5447d1a (diff)
downloadcpython-cd27df3a9923c8c05b57f3f2a142cafd978220a2.zip
cpython-cd27df3a9923c8c05b57f3f2a142cafd978220a2.tar.gz
cpython-cd27df3a9923c8c05b57f3f2a142cafd978220a2.tar.bz2
Fix compilation warnings (seen on win32 buildbot)
Diffstat (limited to 'Python/formatter_unicode.c')
-rw-r--r--Python/formatter_unicode.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Python/formatter_unicode.c b/Python/formatter_unicode.c
index 609ac16..db8c27c 100644
--- a/Python/formatter_unicode.c
+++ b/Python/formatter_unicode.c
@@ -682,7 +682,7 @@ format_string_internal(PyObject *value, const InternalFormatSpec *format)
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 @@ format_int_or_long_internal(PyObject *value, const InternalFormatSpec *format,
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 @@ format_float_internal(PyObject *value,
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 @@ format_complex_internal(PyObject *value,
NumberFieldWidths im_spec;
int flags = 0;
PyObject *result = NULL;
- int maxchar = 127;
+ Py_UCS4 maxchar = 127;
int rkind;
void *rdata;
Py_ssize_t index;