svn commit: r433815 - head/games/ri-li/files

Dmitry Marakasov amdmi3 at FreeBSD.org
Fri Feb 10 17:12:24 UTC 2017


Author: amdmi3
Date: Fri Feb 10 17:12:22 2017
New Revision: 433815
URL: https://svnweb.freebsd.org/changeset/ports/433815

Log:
  - Fix build with clang 4.0
  
  PR:		216626

Added:
  head/games/ri-li/files/patch-src_tableau.cc   (contents, props changed)

Added: head/games/ri-li/files/patch-src_tableau.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/ri-li/files/patch-src_tableau.cc	Fri Feb 10 17:12:22 2017	(r433815)
@@ -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;


More information about the svn-ports-all mailing list