- Fix build with clang 4.0

PR:		216626
This commit is contained in:
Dmitry Marakasov 2017-02-10 17:12:22 +00:00
parent aba47d8e3f
commit 2bbaeb4826
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=433815

View File

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