1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-29 10:18:30 +00:00
freebsd-ports/games/ri-li/files/patch-src_tableau.cc
Dmitry Marakasov 2bbaeb4826 - Fix build with clang 4.0
PR:		216626
2017-02-10 17:12:22 +00:00

12 lines
304 B
C++

--- 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;