Skip to content

Commit c373b8f

Browse files
committed
[build] Group logical operators in eaglexml (clang warning)
1 parent 730951f commit c373b8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extras/eaglexml/eaglexml.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1607,7 +1607,7 @@ namespace eaglexml {
16071607
// continue to parse, until we get a valid node or reach the end-tag or the end of the file
16081608
do {
16091609

1610-
if (m_topnode == parent && m_nextstatus == next_parse_endtag || m_nextstatus == next_eof)
1610+
if ((m_topnode == parent && m_nextstatus == next_parse_endtag) || m_nextstatus == next_eof)
16111611
return 0;
16121612

16131613
node = parse_according_to_status<parser_flags>();
@@ -2664,7 +2664,7 @@ namespace eaglexml {
26642664
// End of data - error
26652665
case char_type('\0'):
26662666
assert(m_topnode);
2667-
if(data && m_topnode->parent() != m_bottomnode || !data && m_topnode != m_bottomnode)
2667+
if ((data && m_topnode->parent() != m_bottomnode) || (!data && m_topnode != m_bottomnode))
26682668
EAGLEXML_PARSE_ERROR("unexpected end of data");
26692669
m_nextstatus = data? next_close_data_node : next_eof;
26702670
break;

0 commit comments

Comments
 (0)