Created attachment 208403 [details] patch ARM and PPC use unsigned char by default. Upstream PR: https://github.com/colobot/colobot/pull/1278
Otherwise I get this error: /tmp/usr/ports/games/colobot/work/colobot-colobot-gold-0.1.12-alpha/src/object/task/taskgoto.cpp:1720:22: error: result of comparison of constant -1 with expression of type 'char' is always false [-Werror,-Wtautological-constant-out-of-range-compare] if ( m_bmIter[i] == -1 ) ~~~~~~~~~~~ ^ ~~ 1 error generated. ninja: build stopped: subcommand failed.
Hi Piotr, Thanks for the patch. I don't have an ARM or PPC arch to test on, but the change makes sense. Let me see if it builds fine in other archs and I'll get back to you soon.
Approved as mentor (builds on ppcports) pending maintainer review.
Comment on attachment 208403 [details] patch LGTM It builds in {11.2,11.3,12.0}{i386,amd64} and runs fine in 12.0amd64.
A commit references this bug: Author: pkubaj Date: Mon Oct 21 10:05:15 UTC 2019 New revision: 515096 URL: https://svnweb.freebsd.org/changeset/ports/515096 Log: games/colobot: fix build on ARM and PPC PR: 241325 Approved by: fernape (maintainer), linimon (mentor) Changes: head/games/colobot/files/ head/games/colobot/files/patch-src_object_task_taskgoto.h