git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@2024 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
5a4c80e22e
commit
27600b14b6
1 changed files with 3 additions and 3 deletions
|
|
@ -114,7 +114,7 @@ public:
|
|||
*/
|
||||
|
||||
void setIndice(unsigned int _i, unsigned int _val) {
|
||||
if (_i <= Kswap && _i >= 0)
|
||||
if (_i <= Kswap)
|
||||
if (_val < size) {
|
||||
indices[_i] = _val;
|
||||
} else
|
||||
|
|
@ -139,7 +139,7 @@ public:
|
|||
*/
|
||||
|
||||
void setIndices(unsigned int * _indices) {
|
||||
for (int i = 0; i <= Kswap; i++)
|
||||
for (unsigned int i = 0; i <= Kswap; i++)
|
||||
setIndice(i, _indices[i]);
|
||||
}
|
||||
|
||||
|
|
@ -242,7 +242,7 @@ public:
|
|||
_is >> size;
|
||||
_is >> Kswap;
|
||||
_is >> key;
|
||||
for (int i = 0; i <= Kswap; i++)
|
||||
for (unsigned int i = 0; i <= Kswap; i++)
|
||||
_is >> indices[i];
|
||||
fitness(repFit);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue