From bbf12fed4d9cd6381a605d2655b6ac587a2cb5ef Mon Sep 17 00:00:00 2001 From: Wohlstand Date: Tue, 9 Jun 2020 16:11:48 +0300 Subject: Attempt to fix a build on ARM #229 --- utils/adlmidi-2/puzzlegame.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'utils') diff --git a/utils/adlmidi-2/puzzlegame.cc b/utils/adlmidi-2/puzzlegame.cc index e7b9890..6a0c982 100644 --- a/utils/adlmidi-2/puzzlegame.cc +++ b/utils/adlmidi-2/puzzlegame.cc @@ -310,7 +310,8 @@ Recursion: // Find out the extents of this piece, and how many // cells of the piece contribute into full (completed) rows. - char full[4] = { -1, -1, -1, -1}; + const char nfull = static_cast(-1); + char full[4] = {nfull, nfull, nfull, nfull}; int miny = n.y + 9, maxy = n.y - 9, minx = n.x + 9, maxx = n.x - 9, num_eroded = 0; (void)(n > [&](int x, int y) -> bool { -- cgit v1.2.3