aboutsummaryrefslogtreecommitdiff
path: root/utils/adlmidi-2/puzzlegame.cc
diff options
context:
space:
mode:
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
{