mirror of https://github.com/python/cpython
bpo-36811: Fix a C compiler warning in _elementtree.c. (GH-13109)
This commit is contained in:
parent
8b1271b12f
commit
6b95149ecc
|
@ -1171,7 +1171,7 @@ checkpath(PyObject* tag)
|
|||
char *p = PyBytes_AS_STRING(tag);
|
||||
const Py_ssize_t len = PyBytes_GET_SIZE(tag);
|
||||
if (len >= 3 && p[0] == '{' && (
|
||||
p[1] == '}' || p[1] == '*' && p[2] == '}')) {
|
||||
p[1] == '}' || (p[1] == '*' && p[2] == '}'))) {
|
||||
/* wildcard: '{}tag' or '{*}tag' */
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue