Issue #19424: Fix a compiler warning on comparing signed/unsigned size_t

Patch written by Zachary Ware.
This commit is contained in:
Victor Stinner 2013-11-03 13:53:12 +01:00
parent 4babb9111f
commit e1b1592fd4
1 changed files with 1 additions and 1 deletions

View File

@ -10581,7 +10581,7 @@ PyUnicode_CompareWithASCIIString(PyObject* uni, const char* str)
kind = PyUnicode_KIND(uni); kind = PyUnicode_KIND(uni);
if (kind == PyUnicode_1BYTE_KIND) { if (kind == PyUnicode_1BYTE_KIND) {
const void *data = PyUnicode_1BYTE_DATA(uni); const void *data = PyUnicode_1BYTE_DATA(uni);
Py_ssize_t len1 = PyUnicode_GET_LENGTH(uni); size_t len1 = (size_t)PyUnicode_GET_LENGTH(uni);
size_t len, len2 = strlen(str); size_t len, len2 = strlen(str);
int cmp; int cmp;