1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-03-27 18:50:07 +03:00

schematron: Use logical and

This commit is contained in:
Nick Wellnhofer 2023-02-22 14:25:29 +01:00
parent 4f0a0fb7a2
commit ae8a12f175

View File

@ -1586,8 +1586,8 @@ xmlSchematronReportSuccess(xmlSchematronValidCtxtPtr ctxt,
long line;
const xmlChar *report = NULL;
if (((test->type == XML_SCHEMATRON_REPORT) & (!success)) ||
((test->type == XML_SCHEMATRON_ASSERT) & (success)))
if (((test->type == XML_SCHEMATRON_REPORT) && (!success)) ||
((test->type == XML_SCHEMATRON_ASSERT) && (success)))
return;
line = xmlGetLineNo(cur);
path = xmlGetNodePath(cur);