diff --git a/graphics/hvif-tools/files/patch-src_tracer_processing_PathScanner.cpp b/graphics/hvif-tools/files/patch-src_tracer_processing_PathScanner.cpp new file mode 100644 index 000000000000..182410f1283f --- /dev/null +++ b/graphics/hvif-tools/files/patch-src_tracer_processing_PathScanner.cpp @@ -0,0 +1,20 @@ +--- src/tracer/processing/PathScanner.cpp.orig 2025-12-14 12:31:31 UTC ++++ src/tracer/processing/PathScanner.cpp +@@ -16,7 +16,7 @@ const bool PathScanner::kPathScanHolePathLookup[16] = + false, false, false, true, false, true, true, false + }; + +-const char PathScanner::kPathScanCombinedLookup[16][4][4] = { ++const signed char PathScanner::kPathScanCombinedLookup[16][4][4] = { + {{-1,-1,-1,-1}, {-1,-1,-1,-1}, {-1,-1,-1,-1}, {-1,-1,-1,-1}}, // 0 + {{ 0, 1, 0,-1}, {-1,-1,-1,-1}, {-1,-1,-1,-1}, { 0, 2,-1, 0}}, // 1 + {{-1,-1,-1,-1}, {-1,-1,-1,-1}, { 0, 1, 0,-1}, { 0, 0, 1, 0}}, // 2 +@@ -137,7 +137,7 @@ PathScanner::ScanPaths(std::vector >& + break; + } + +- const char* lookupRow = kPathScanCombinedLookup[code][direction]; ++ const signed char* lookupRow = kPathScanCombinedLookup[code][direction]; + + if (lookupRow[1] < 0) { + pathFinished = true; diff --git a/graphics/hvif-tools/files/patch-src_tracer_processing_PathScanner.h b/graphics/hvif-tools/files/patch-src_tracer_processing_PathScanner.h new file mode 100644 index 000000000000..7b64f82e24ad --- /dev/null +++ b/graphics/hvif-tools/files/patch-src_tracer_processing_PathScanner.h @@ -0,0 +1,11 @@ +--- src/tracer/processing/PathScanner.h.orig 2025-12-14 12:31:58 UTC ++++ src/tracer/processing/PathScanner.h +@@ -35,7 +35,7 @@ class PathScanner { (private) + private: + static const unsigned char kPathScanDirectionLookup[16]; + static const bool kPathScanHolePathLookup[16]; +- static const char kPathScanCombinedLookup[16][4][4]; ++ static const signed char kPathScanCombinedLookup[16][4][4]; + }; + + #endif