Skip to content

Commit 6b95149

Browse files
authored
bpo-36811: Fix a C compiler warning in _elementtree.c. (pythonGH-13109)
1 parent 8b1271b commit 6b95149

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/_elementtree.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1171,7 +1171,7 @@ checkpath(PyObject* tag)
11711171
char *p = PyBytes_AS_STRING(tag);
11721172
const Py_ssize_t len = PyBytes_GET_SIZE(tag);
11731173
if (len >= 3 && p[0] == '{' && (
1174-
p[1] == '}' || p[1] == '*' && p[2] == '}')) {
1174+
p[1] == '}' || (p[1] == '*' && p[2] == '}'))) {
11751175
/* wildcard: '{}tag' or '{*}tag' */
11761176
return 1;
11771177
}

0 commit comments

Comments
 (0)