mirror of
https://github.com/python/cpython.git
synced 2025-09-16 21:56:14 +00:00
parent
c99874da83
commit
a6b9b071a3
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue