Skip to content

Commit fb438a2

Browse files
committed
bpo-37399: Resolve a C compiler warning.
1 parent f3c00f8 commit fb438a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/_elementtree.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -3636,7 +3636,7 @@ expat_pi_handler(XMLParserObject* self, const XML_Char* target_in,
36363636
/* shortcut */
36373637
TreeBuilderObject *target = (TreeBuilderObject*) self->target;
36383638

3639-
if (target->events_append && target->pi_event_obj || target->insert_pis) {
3639+
if ((target->events_append && target->pi_event_obj) || target->insert_pis) {
36403640
pi_target = PyUnicode_DecodeUTF8(target_in, strlen(target_in), "strict");
36413641
if (!pi_target)
36423642
goto error;

0 commit comments

Comments
 (0)