svn commit: r447874 - head/games/critterding/files

Raphael Kubo da Costa rakuco at FreeBSD.org
Sun Aug 13 11:04:08 UTC 2017


Author: rakuco
Date: Sun Aug 13 11:04:07 2017
New Revision: 447874
URL: https://svnweb.freebsd.org/changeset/ports/447874

Log:
  Add patch to fix a wrong assignment in the code.
  
  In addition to fixing an actual bug, this also allows the port to build with
  GCC 6:
  
  brainz.cpp: In member function 'void Brainz::processTillAnswer()':
  brainz.cpp:140:24: error: cannot convert 'bool' to 'bool*' in assignment
      Outputs[i].output = false;
  
  PR:		219287
  Approved by:	maintainer timeout (amdmi3, 16 days)
  MFH:		2017Q3

Added:
  head/games/critterding/files/patch-src_brainz_brainz.cpp   (contents, props changed)

Added: head/games/critterding/files/patch-src_brainz_brainz.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/critterding/files/patch-src_brainz_brainz.cpp	Sun Aug 13 11:04:07 2017	(r447874)
@@ -0,0 +1,14 @@
+brainz.cpp: In member function 'void Brainz::processTillAnswer()':
+brainz.cpp:140:24: error: cannot convert 'bool' to 'bool*' in assignment
+    Outputs[i].output = false;
+--- src/brainz/brainz.cpp.orig	2017-07-28 12:12:16 UTC
++++ src/brainz/brainz.cpp
+@@ -137,7 +137,7 @@ Brainz::Brainz()
+ 	
+ 		// clear Motor Outputs
+ 		for ( unsigned int i=0; i < numberOfOutputs; i++ )
+-			Outputs[i].output = false;
++			*Outputs[i].output = false;
+ 	
+ 		// clear Neurons
+ 		for ( unsigned int i=0; i < totalNeurons; i++ )


More information about the svn-ports-all mailing list