Skip to content

Commit

Permalink
[build] Group logical operators in eaglexml (clang warning)
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 committed Dec 4, 2013
1 parent 730951f commit c373b8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extras/eaglexml/eaglexml.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1607,7 +1607,7 @@ namespace eaglexml {
// continue to parse, until we get a valid node or reach the end-tag or the end of the file
do {

if (m_topnode == parent && m_nextstatus == next_parse_endtag || m_nextstatus == next_eof)
if ((m_topnode == parent && m_nextstatus == next_parse_endtag) || m_nextstatus == next_eof)
return 0;

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

0 comments on commit c373b8f

Please sign in to comment.