- Fix build with clang 4.0
PR: 216626
This commit is contained in:
parent
aba47d8e3f
commit
2bbaeb4826
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=433815
11
games/ri-li/files/patch-src_tableau.cc
Normal file
11
games/ri-li/files/patch-src_tableau.cc
Normal 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;
|
Loading…
Reference in New Issue
Block a user