aboutsummaryrefslogtreecommitdiff
path: root/games/ri-li
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2017-02-10 17:12:22 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2017-02-10 17:12:22 +0000
commit2bbaeb48261f4c82c61abd468533388c625673d5 (patch)
tree248ff85393b2c234c0b63f45e5d8df28a8504b15 /games/ri-li
parentaba47d8e3f10b0ecb6cf8cc1f49e061d6aeb42e4 (diff)
downloadports-2bbaeb48261f4c82c61abd468533388c625673d5.tar.gz
ports-2bbaeb48261f4c82c61abd468533388c625673d5.zip
- Fix build with clang 4.0
PR: 216626
Notes
Notes: svn path=/head/; revision=433815
Diffstat (limited to 'games/ri-li')
-rw-r--r--games/ri-li/files/patch-src_tableau.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/games/ri-li/files/patch-src_tableau.cc b/games/ri-li/files/patch-src_tableau.cc
new file mode 100644
index 000000000000..a6fca66ee52e
--- /dev/null
+++ b/games/ri-li/files/patch-src_tableau.cc
@@ -0,0 +1,11 @@
+--- src/tableau.cc.orig 2007-11-02 11:48:21 UTC
++++ src/tableau.cc
+@@ -87,7 +87,7 @@ bool Tableau::Save(void)
+
+ // Alloue la mémoire
+ Buf=new unsigned char [sizeof(s_Tableau)*N+sizeof(int)+1];
+- if(Buf<=0) return false;
++ if(Buf==NULL) return false;
+
+ // Charge les tableaux
+ Buf[0]=N/256;