From af9155765609aaad5f8281694c67db94b3ac27f5 Mon Sep 17 00:00:00 2001 From: jeggermo Date: Tue, 17 Jul 2001 13:06:28 +0000 Subject: [PATCH] check for the existence of isinf didn't work the way it should so it has been removed --- eo/app/gpsymreg/fitness.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/eo/app/gpsymreg/fitness.h b/eo/app/gpsymreg/fitness.h index eca800f0..35563599 100644 --- a/eo/app/gpsymreg/fitness.h +++ b/eo/app/gpsymreg/fitness.h @@ -202,14 +202,11 @@ class RegFitness: public eoEvalFunc< eoParseTree > fit += pow(target - output, 2); } - // check if the fitness is valid // some versions of gcc (e.g. 2.95.2 on solaris) don't have isinf(x) defined - #ifdef isinf if (isinf(fit) == 0) fitness[NORMAL] = fit; else fitness[NORMAL] = MAXFLOAT; - #endif fitness[SMALLESTSIZE] = _eo.size() / (1.0*parameter.MaxSize); _eo.fitness(fitness);