Kaydet (Commit) a6b9b071 authored tarafından Victor Stinner's avatar Victor Stinner

Issue #19424: Fix a compiler warning

memcmp() just takes raw pointers
üst c99874da
...@@ -10580,7 +10580,7 @@ PyUnicode_CompareWithASCIIString(PyObject* uni, const char* str) ...@@ -10580,7 +10580,7 @@ PyUnicode_CompareWithASCIIString(PyObject* uni, const char* str)
return -1; return -1;
kind = PyUnicode_KIND(uni); kind = PyUnicode_KIND(uni);
if (kind == PyUnicode_1BYTE_KIND) { 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); Py_ssize_t len1 = PyUnicode_GET_LENGTH(uni);
size_t len, len2 = strlen(str); size_t len, len2 = strlen(str);
int cmp; int cmp;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment