From 6b95149eccac540a911a5ada03fcb7d623a0de37 Mon Sep 17 00:00:00 2001
From: Stefan Behnel <stefan_ml@behnel.de>
Date: Mon, 6 May 2019 17:36:35 +0200
Subject: [PATCH] bpo-36811: Fix a C compiler warning in _elementtree.c.
 (GH-13109)

---
 Modules/_elementtree.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
         }
-- 
2.18.1