aboutsummaryrefslogtreecommitdiff
path: root/utils/adlmidi-2/puzzlegame.cc
diff options
context:
space:
mode:
authorWohlstand <admin@wohlnet.ru>2020-10-21 10:19:36 +0300
committerWohlstand <admin@wohlnet.ru>2020-10-21 10:19:36 +0300
commitf43bd68e0d1ff2790f8c9c2632d110daf304a66a (patch)
treed489c9f9f1bdba01f6ee8f9abc11c9d932ac4792 /utils/adlmidi-2/puzzlegame.cc
parent9d1370b2490bec28ff2ea584a6f73488b886c915 (diff)
downloadlibADLMIDI-f43bd68e0d1ff2790f8c9c2632d110daf304a66a.tar.gz
libADLMIDI-f43bd68e0d1ff2790f8c9c2632d110daf304a66a.tar.bz2
libADLMIDI-f43bd68e0d1ff2790f8c9c2632d110daf304a66a.zip
ADLMIDI2; Backport recent changes from original project
Diffstat (limited to 'utils/adlmidi-2/puzzlegame.cc')
-rw-r--r--utils/adlmidi-2/puzzlegame.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/utils/adlmidi-2/puzzlegame.cc b/utils/adlmidi-2/puzzlegame.cc
index 6a0c982..8cb55a2 100644
--- a/utils/adlmidi-2/puzzlegame.cc
+++ b/utils/adlmidi-2/puzzlegame.cc
@@ -310,8 +310,7 @@ Recursion:
// Find out the extents of this piece, and how many
// cells of the piece contribute into full (completed) rows.
- const char nfull = static_cast<char>(-1);
- char full[4] = {nfull, nfull, nfull, nfull};
+ signed char full[4] = {-1, -1, -1, -1};
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
{