suggest parentheses around ‘&&’ within ‘||’
git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@2301 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
65d9ea29cb
commit
2df18ea16c
1 changed files with 1 additions and 2 deletions
|
|
@ -86,8 +86,7 @@ public:
|
|||
virtual bool equals(moSwapNeighbor<EOT,Fitness>& _neighbor) {
|
||||
unsigned f, s;
|
||||
_neighbor.getIndices(f, s);
|
||||
return ((indices.first == f) && (indices.second == s) || (indices.first
|
||||
== s) && (indices.second == f));
|
||||
return (((indices.first == f) && (indices.second == s)) || ((indices.first == s) && (indices.second == f)));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue