svn commit: r448133 - branches/2017Q3/games/critterding/files
Raphael Kubo da Costa
rakuco at FreeBSD.org
Thu Aug 17 15:58:57 UTC 2017
Author: rakuco
Date: Thu Aug 17 15:58:55 2017
New Revision: 448133
URL: https://svnweb.freebsd.org/changeset/ports/448133
Log:
MFH: r447874
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)
Approved by: ports-secteam (feld)
Added:
branches/2017Q3/games/critterding/files/patch-src_brainz_brainz.cpp
- copied unchanged from r447874, head/games/critterding/files/patch-src_brainz_brainz.cpp
Modified:
Directory Properties:
branches/2017Q3/ (props changed)
Copied: branches/2017Q3/games/critterding/files/patch-src_brainz_brainz.cpp (from r447874, head/games/critterding/files/patch-src_brainz_brainz.cpp)
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ branches/2017Q3/games/critterding/files/patch-src_brainz_brainz.cpp Thu Aug 17 15:58:55 2017 (r448133, copy of r447874, head/games/critterding/files/patch-src_brainz_brainz.cpp)
@@ -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