Fix signed comparison warning from g++

This commit is contained in:
Eric Fischer 2017-11-07 11:38:38 -08:00
parent c18f9a1572
commit 20e6e80cb1

View File

@ -120,7 +120,7 @@ void handle(std::string message, int z, unsigned x, unsigned y, int describe, st
}
// X and Y are unsigned, so no need to check <0
if (x > (1 << z) || y > (1 << z)) {
if (x > (1ULL << z) || y > (1ULL << z)) {
fprintf(stderr, "Impossible tile %d/%u/%u\n", z, x, y);
exit(EXIT_FAILURE);
}