diff --git a/comms/inspectrum/files/patch-src_traceplot.cpp b/comms/inspectrum/files/patch-src_traceplot.cpp new file mode 100644 index 000000000000..4e1281dc8440 --- /dev/null +++ b/comms/inspectrum/files/patch-src_traceplot.cpp @@ -0,0 +1,11 @@ +--- src/traceplot.cpp.orig 2026-07-21 08:44:18 UTC ++++ src/traceplot.cpp +@@ -32,7 +32,7 @@ void TracePlot::paintMid(QPainter &painter, QRect &rec + { + if (sampleRange.length() == 0) return; + +- int samplesPerColumn = std::max(1UL, sampleRange.length() / rect.width()); ++ int samplesPerColumn = std::max(static_cast(1), sampleRange.length() / rect.width()); + int samplesPerTile = tileWidth * samplesPerColumn; + size_t tileID = sampleRange.minimum / samplesPerTile; + size_t tileOffset = sampleRange.minimum % samplesPerTile; // Number of samples to skip from first image tile