aboutsummaryrefslogtreecommitdiffstats
path: root/games/kuklomenos
diff options
context:
space:
mode:
authorpi <pi@FreeBSD.org>2016-04-19 00:52:26 +0800
committerpi <pi@FreeBSD.org>2016-04-19 00:52:26 +0800
commitbc36cb3fd02b904438c39a81435aa13e7c270426 (patch)
treea0c14d6441e39eac6c415c9eca21544b5fab7e84 /games/kuklomenos
parentddc251953adf161d56be188e260f45101ad72a50 (diff)
downloadfreebsd-ports-gnome-bc36cb3fd02b904438c39a81435aa13e7c270426.tar.gz
freebsd-ports-gnome-bc36cb3fd02b904438c39a81435aa13e7c270426.tar.zst
freebsd-ports-gnome-bc36cb3fd02b904438c39a81435aa13e7c270426.zip
games/kuklomenos: Fix build with libc++ 3.8.0
PR: 208842 Submitted by: dim
Diffstat (limited to 'games/kuklomenos')
-rw-r--r--games/kuklomenos/files/patch-node.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/games/kuklomenos/files/patch-node.cc b/games/kuklomenos/files/patch-node.cc
new file mode 100644
index 000000000000..21068ce6805a
--- /dev/null
+++ b/games/kuklomenos/files/patch-node.cc
@@ -0,0 +1,11 @@
+--- node.cc.orig 2009-10-04 14:01:21 UTC
++++ node.cc
+@@ -175,7 +175,7 @@ Uint32 Node::colour() const
+ {
+ intensity = (status == NODEST_NONE ? 0x80 : 0xbf);
+ intensity += int( (0xff - intensity) *
+- std::max(0.0, 1 - ( fabs(angleDiff(spin*3, 0)) * 2 )) );
++ std::max(0.0f, 1 - ( fabsf(angleDiff(spin*3, 0)) * 2 )) );
+ }
+ }
+ else