Fix a compiler warning: use unsiged for maxchar in unicode_widen()

This commit is contained in:
Victor Stinner 2011-11-09 00:02:42 +01:00
parent 596a6c4ffc
commit 0a045efb49
1 changed files with 1 additions and 1 deletions

View File

@ -1556,7 +1556,7 @@ PyUnicode_Resize(PyObject **p_unicode, Py_ssize_t length)
} }
static int static int
unicode_widen(PyObject **p_unicode, int maxchar) unicode_widen(PyObject **p_unicode, unsigned int maxchar)
{ {
PyObject *result; PyObject *result;
assert(PyUnicode_IS_READY(*p_unicode)); assert(PyUnicode_IS_READY(*p_unicode));