From 91d74f6678d5b7485096189e6b11c473d47bfbcd Mon Sep 17 00:00:00 2001 From: pepa65 Date: Mon, 14 Dec 2020 13:40:44 +0700 Subject: [PATCH] Squash warning Make end_marker unsigned --- src/main/cpp/tiv.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/cpp/tiv.cpp b/src/main/cpp/tiv.cpp index 4cc863f..22f55a4 100644 --- a/src/main/cpp/tiv.cpp +++ b/src/main/cpp/tiv.cpp @@ -326,7 +326,7 @@ CharData findCharData(const cimg_library::CImg & image, int x0, i unsigned int best_pattern = 0x0000ffff; int codepoint = 0x2584; bool inverted = false; - int end_marker = flags & FLAG_TELETEXT ? 1 : 0; + unsigned int end_marker = flags & FLAG_TELETEXT ? 1 : 0; for (int i = 0; BITMAPS[i + 1] != end_marker; i += 2) { // Skip all end markers if (BITMAPS[i + 1] < 32) {