From 2bbaeb48261f4c82c61abd468533388c625673d5 Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Fri, 10 Feb 2017 17:12:22 +0000 Subject: [PATCH] - Fix build with clang 4.0 PR: 216626 --- games/ri-li/files/patch-src_tableau.cc | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 games/ri-li/files/patch-src_tableau.cc 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;