summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-11-09 00:02:42 +0100
committerVictor Stinner <victor.stinner@haypocalc.com>2011-11-09 00:02:42 +0100
commit0a045efb49ba20717dba115bd309544bfae16303 (patch)
treea904e86e2492c2d52ef33a7344918b1c8cf17911
parent596a6c4ffcf35de733959dd0e96f0176bf4f4c30 (diff)
downloadcpython-git-0a045efb49ba20717dba115bd309544bfae16303.tar.gz
Fix a compiler warning: use unsiged for maxchar in unicode_widen()
-rw-r--r--Objects/unicodeobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 477827a0a5..26f2c8b157 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -1556,7 +1556,7 @@ PyUnicode_Resize(PyObject **p_unicode, Py_ssize_t length)
}
static int
-unicode_widen(PyObject **p_unicode, int maxchar)
+unicode_widen(PyObject **p_unicode, unsigned int maxchar)
{
PyObject *result;
assert(PyUnicode_IS_READY(*p_unicode));