changed int compare to size_t
This commit is contained in:
parent
173756916a
commit
107c4568a0
1 changed files with 1 additions and 1 deletions
|
|
@ -68,7 +68,7 @@ template <class EOT> class eoElitism : public eoMerge<EOT>
|
||||||
vector<const EOT*> result;
|
vector<const EOT*> result;
|
||||||
_pop.nth_element(howmany, result);
|
_pop.nth_element(howmany, result);
|
||||||
|
|
||||||
for (int i = 0; i < result.size(); ++i)
|
for (size_t i = 0; i < result.size(); ++i)
|
||||||
{
|
{
|
||||||
offspring.push_back(*result[i]);
|
offspring.push_back(*result[i]);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Reference in a new issue