aboutsummaryrefslogtreecommitdiff
path: root/utils/adlmidi-2
diff options
context:
space:
mode:
authorWohlstand <admin@wohlnet.ru>2020-06-09 16:11:48 +0300
committerWohlstand <admin@wohlnet.ru>2020-06-09 16:11:48 +0300
commitbbf12fed4d9cd6381a605d2655b6ac587a2cb5ef (patch)
tree05a21446dd6335324fe8550bc17132f540e23b87 /utils/adlmidi-2
parenta0da4cd2759e1ffeb905b35dc685fd91721b6644 (diff)
downloadlibADLMIDI-bbf12fed4d9cd6381a605d2655b6ac587a2cb5ef.tar.gz
libADLMIDI-bbf12fed4d9cd6381a605d2655b6ac587a2cb5ef.tar.bz2
libADLMIDI-bbf12fed4d9cd6381a605d2655b6ac587a2cb5ef.zip
Attempt to fix a build on ARM
#229
Diffstat (limited to 'utils/adlmidi-2')
-rw-r--r--utils/adlmidi-2/puzzlegame.cc3
1 files changed, 2 insertions, 1 deletions
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<char>(-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
{