diff options
Diffstat (limited to 'utils/adlmidi-2/puzzlegame.cc')
-rw-r--r-- | utils/adlmidi-2/puzzlegame.cc | 3 |
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 { |