Updated to use gcc-3.2

This commit is contained in:
maartenkeijzer 2003-02-17 10:19:25 +00:00
commit ff2968bd60
8 changed files with 21 additions and 19 deletions

View file

@ -140,10 +140,10 @@ eoValueParam<unsigned> tournamentSizeParam = parser.createParam(unsigned(2), "to
parentsOrg[i].fitness(i);
else if (fitnessType == string("exp"))
for (unsigned i=0; i<pSize; i++)
parentsOrg[i].fitness(exp(i));
parentsOrg[i].fitness(exp((double)i));
else if (fitnessType == string("log"))
for (unsigned i=0; i<pSize; i++)
parentsOrg[i].fitness(log(i+1));
parentsOrg[i].fitness(log(i+1.));
else if (fitnessType == string("super"))
{
for (unsigned i=0; i<pSize-1; i++)