Date: Thu, 17 Aug 2017 15:58:55 +0000 (UTC) From: Raphael Kubo da Costa <rakuco@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org Subject: svn commit: r448133 - branches/2017Q3/games/critterding/files Message-ID: <201708171558.v7HFwt5n003655@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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++ )
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201708171558.v7HFwt5n003655>