freebsd-ports/math/kseg/files/patch-G_pointLocus.cpp
Pav Lucistnik 9e4c82a3e5 - Fix build on 5.x
PR:		ports/59810
Submitted by:	Markus Brueffer <brueffer@phoenix-systems.de>
Approved by:	marcus (portmgr)
Approved by:	adamw (mentor)
2003-11-30 18:13:43 +00:00

11 lines
483 B
C++

--- G_pointLocus.cpp.orig Sat Nov 29 04:52:07 2003
+++ G_pointLocus.cpp Sat Nov 29 04:54:38 2003
@@ -283,7 +283,7 @@
}
else discontCount = 0; //number of times the goodness decreased--for finding discontinuities
- if(discontCount > log(maxSamples) / 1.5) {
+ if(discontCount > log((double)maxSamples) / 1.5) {
points[0].loc = G_point::inValid();
points[points[0].next].loc = G_point::inValid();
points[points[0].prev].loc = G_point::inValid();