From f43bd68e0d1ff2790f8c9c2632d110daf304a66a Mon Sep 17 00:00:00 2001 From: Wohlstand Date: Wed, 21 Oct 2020 10:19:36 +0300 Subject: ADLMIDI2; Backport recent changes from original project --- utils/adlmidi-2/puzzlegame.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'utils/adlmidi-2/puzzlegame.cc') 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(-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 { -- cgit v1.2.3