From: Stefan Behnel Date: Mon, 6 May 2019 15:36:35 +0000 (+0200) Subject: bpo-36811: Fix a C compiler warning in _elementtree.c. (GH-13109) X-Git-Tag: v3.8.0a4~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6b95149eccac540a911a5ada03fcb7d623a0de37;p=python bpo-36811: Fix a C compiler warning in _elementtree.c. (GH-13109) --- diff --git a/Modules/_elementtree.c b/Modules/_elementtree.c index 1e58ddbfe1..e9a0ea21b2 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; }