From 2df18ea16c2c89e834d926626a0a4a1bed996ca2 Mon Sep 17 00:00:00 2001 From: boufaras Date: Thu, 7 Jul 2011 09:37:51 +0000 Subject: [PATCH] =?UTF-8?q?suggest=20parentheses=20around=20=E2=80=98&&?= =?UTF-8?q?=E2=80=99=20within=20=E2=80=98||=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@2301 331e1502-861f-0410-8da2-ba01fb791d7f --- trunk/paradiseo-mo/src/problems/permutation/moSwapNeighbor.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/trunk/paradiseo-mo/src/problems/permutation/moSwapNeighbor.h b/trunk/paradiseo-mo/src/problems/permutation/moSwapNeighbor.h index e940c836c..55dfcbe8d 100644 --- a/trunk/paradiseo-mo/src/problems/permutation/moSwapNeighbor.h +++ b/trunk/paradiseo-mo/src/problems/permutation/moSwapNeighbor.h @@ -86,8 +86,7 @@ public: virtual bool equals(moSwapNeighbor& _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))); } /**