aboutsummaryrefslogtreecommitdiffstats
path: root/games/six
diff options
context:
space:
mode:
authorarved <arved@FreeBSD.org>2004-02-20 22:41:25 +0800
committerarved <arved@FreeBSD.org>2004-02-20 22:41:25 +0800
commita1aac88e0269f0fa40f255bea8880de3234fbacf (patch)
treea714856b9b30ecff75b15229a288ba0b02d86836 /games/six
parent1ce3e1ec700c3d895dc254e2d74803883d0bb4c4 (diff)
downloadfreebsd-ports-gnome-a1aac88e0269f0fa40f255bea8880de3234fbacf.tar.gz
freebsd-ports-gnome-a1aac88e0269f0fa40f255bea8880de3234fbacf.tar.zst
freebsd-ports-gnome-a1aac88e0269f0fa40f255bea8880de3234fbacf.zip
Fix build on CURRENT
Reported by: bento
Diffstat (limited to 'games/six')
-rw-r--r--games/six/files/patch-lssolve.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/games/six/files/patch-lssolve.cpp b/games/six/files/patch-lssolve.cpp
new file mode 100644
index 000000000000..4fe6bb578d97
--- /dev/null
+++ b/games/six/files/patch-lssolve.cpp
@@ -0,0 +1,20 @@
+--- six/lssolve.cpp.orig Fri Feb 20 15:34:59 2004
++++ six/lssolve.cpp Fri Feb 20 15:36:58 2004
+@@ -120,7 +120,7 @@
+ double temp;
+
+ x(n - 1) = b(n - 1) / U(n - 1, n - 1);
+- if(isnan(x(n - 1)))
++ if(std::isnan(x(n - 1)))
+ x(n - 1) = 0.;
+ for(i = n - 2; i >= 0; i--) {
+ // Should be: x(i)=((b(i)-U(i,i,i+1,n-1)*x(i+1,n-1))/U(i,i))(0);
+@@ -131,7 +131,7 @@
+ temp += U.data()[iPos + j] * x(j);
+ }
+ x(i) = (b(i) - temp) / U.data()[iPos + i];
+- if(isnan(x(i)))
++ if(std::isnan(x(i)))
+ x(i) = 0.;
+ }
+ }