diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2019-05-06 15:36:35 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-06 15:36:35 (GMT) |
commit | 6b95149eccac540a911a5ada03fcb7d623a0de37 (patch) | |
tree | 75de63c3c78740fbb1a2690aa535550221c55dee /Modules | |
parent | 8b1271b12fdbb1ac01217d929d8b112119e3f53b (diff) | |
download | cpython-6b95149eccac540a911a5ada03fcb7d623a0de37.zip cpython-6b95149eccac540a911a5ada03fcb7d623a0de37.tar.gz cpython-6b95149eccac540a911a5ada03fcb7d623a0de37.tar.bz2 |
bpo-36811: Fix a C compiler warning in _elementtree.c. (GH-13109)
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_elementtree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_elementtree.c b/Modules/_elementtree.c index 1e58ddb..e9a0ea2 100644 --- a/Modules/_elementtree.c +++ b/Modules/_elementtree.c @@ -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; } |