aboutsummaryrefslogtreecommitdiffstats
path: root/math
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2003-12-01 02:13:43 +0800
committerpav <pav@FreeBSD.org>2003-12-01 02:13:43 +0800
commit2eff30392b65da3ed4063df0e7774c082dcc4627 (patch)
treed100ebc544988bdd5f1fe97a2f44ee977f2b518f /math
parent3b8ac7528545f8abf1b435eba84e76a38c78cb28 (diff)
downloadfreebsd-ports-gnome-2eff30392b65da3ed4063df0e7774c082dcc4627.tar.gz
freebsd-ports-gnome-2eff30392b65da3ed4063df0e7774c082dcc4627.tar.zst
freebsd-ports-gnome-2eff30392b65da3ed4063df0e7774c082dcc4627.zip
- Fix build on 5.x
PR: ports/59810 Submitted by: Markus Brueffer <brueffer@phoenix-systems.de> Approved by: marcus (portmgr) Approved by: adamw (mentor)
Diffstat (limited to 'math')
-rw-r--r--math/kseg/files/patch-G_pointLocus.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/math/kseg/files/patch-G_pointLocus.cpp b/math/kseg/files/patch-G_pointLocus.cpp
new file mode 100644
index 000000000000..5e92ea002bc6
--- /dev/null
+++ b/math/kseg/files/patch-G_pointLocus.cpp
@@ -0,0 +1,11 @@
+--- 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();