opnsense-ports/comms/yagiuda/files/patch-src_genetic_algorithm_lib.c
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

22 lines
526 B
C

--- src/genetic_algorithm_lib.c.orig Tue Jul 19 12:25:24 2005
+++ src/genetic_algorithm_lib.c Tue Jul 19 12:35:51 2005
@@ -3,9 +3,8 @@
#endif
#include <string.h>
-#include <values.h>
-#include <math.h>
#include <sys/types.h>
+#include <math.h>
#include <errno.h>
#include "yagi.h"
@@ -245,7 +244,7 @@
GeneRecord *temp ;
double minfit,maxfit ;
sigma=0.0 ;
- minfit=MAXDOUBLE ;
+ minfit=MAXFLOAT;
maxfit=-minfit ;
/* minfit=1e308; maxfit=-1e308; XXXXXXXXXXXXXXXXXXXXXX */
for(a=0 ; a<population_size ; a++ )