summaryrefslogtreecommitdiff
path: root/games-puzzle/brainparty/files/brainparty-0.61-clang-11.patch
diff options
context:
space:
mode:
Diffstat (limited to 'games-puzzle/brainparty/files/brainparty-0.61-clang-11.patch')
-rw-r--r--games-puzzle/brainparty/files/brainparty-0.61-clang-11.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/games-puzzle/brainparty/files/brainparty-0.61-clang-11.patch b/games-puzzle/brainparty/files/brainparty-0.61-clang-11.patch
new file mode 100644
index 000000000000..07c1b9709932
--- /dev/null
+++ b/games-puzzle/brainparty/files/brainparty-0.61-clang-11.patch
@@ -0,0 +1,14 @@
+clang-11 needs explicit cast
+
+https://bugs.gentoo.org/739284
+--- a/BPGame.cpp
++++ b/BPGame.cpp
+@@ -1507,7 +1507,7 @@ int BPGame::DivRem(int Num, int Div, int* Rem) {
+ }
+
+ void BPGame::DrawLine(int fromx, int fromy, int tox, int toy, Colour* col, float width) {
+- GLfloat vertices[] = { fromx, fromy, tox, toy };
++ GLfloat vertices[] = { (GLfloat)fromx, (GLfloat)fromy, (GLfloat)tox, (GLfloat)toy };
+
+ glDisable(GL_TEXTURE_2D);
+ glLineWidth(width);