Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Feb 2017 17:12:23 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r433815 - head/games/ri-li/files
Message-ID:  <201702101712.v1AHCNL5068689@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201702101712.v1AHCNL5068689>