Skip to content

Commit

Permalink
Added parenthesis to prevent warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
BenHanson committed Feb 15, 2024
1 parent 22102fc commit af5c3d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/parsertl/dfa.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ namespace parsertl
bool operator<(const cursor& rhs_) const
{
return _id < rhs_._id ||
_id == rhs_._id && _index < rhs_._index;
(_id == rhs_._id && _index < rhs_._index);
}
};

Expand Down
2 changes: 1 addition & 1 deletion include/parsertl/rules.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ namespace parsertl
bool operator<(const rhs& rhs_) const
{
return _symbols < rhs_._symbols ||
_symbols == rhs_._symbols && _prec < rhs_._prec;
(_symbols == rhs_._symbols && _prec < rhs_._prec);
}
};

Expand Down

0 comments on commit af5c3d7

Please sign in to comment.