From 20e6e80cb1dd184c2ff1edb52a936534e0a57299 Mon Sep 17 00:00:00 2001 From: Eric Fischer Date: Tue, 7 Nov 2017 11:38:38 -0800 Subject: [PATCH] Fix signed comparison warning from g++ --- decode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/decode.cpp b/decode.cpp index d1fcffd..cbe7a7a 100644 --- a/decode.cpp +++ b/decode.cpp @@ -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); }