aboutsummaryrefslogtreecommitdiff
path: root/utils/adlmidi-2/puzzlegame.cc
diff options
context:
space:
mode:
authorWohlstand <admin@wohlnet.ru>2020-07-06 21:04:22 +0300
committerWohlstand <admin@wohlnet.ru>2020-07-06 21:04:22 +0300
commit35b34cc4f75a816e57854e8d3123fa764f6ed8e5 (patch)
tree3300222ec88cf167204cd6339c6aa577b58b9283 /utils/adlmidi-2/puzzlegame.cc
parent5a2c916ac795606b7d85a93b0ca1b320e6a7ee78 (diff)
parentbbf12fed4d9cd6381a605d2655b6ac587a2cb5ef (diff)
downloadlibADLMIDI-35b34cc4f75a816e57854e8d3123fa764f6ed8e5.tar.gz
libADLMIDI-35b34cc4f75a816e57854e8d3123fa764f6ed8e5.tar.bz2
libADLMIDI-35b34cc4f75a816e57854e8d3123fa764f6ed8e5.zip
Merge branch 'master' into wip-new-embedded-banks
Diffstat (limited to 'utils/adlmidi-2/puzzlegame.cc')
-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
{