Issue #19424: Fix a compiler warning

memcmp() just takes raw pointers
This commit is contained in:
Victor Stinner 2013-10-30 18:27:13 +01:00
parent c99874da83
commit a6b9b071a3
1 changed files with 1 additions and 1 deletions

View File

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