File: 0007-spectrogramplot-match-types-for-std-max-to-fix-mac-b.patch

package info (click to toggle)
inspectrum 0.2.3-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,312 kB
  • sloc: cpp: 2,675; makefile: 3
file content (26 lines) | stat: -rw-r--r-- 1,001 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From b529b7bba7e122e82b840d08096c98fc28367d2c Mon Sep 17 00:00:00 2001
From: Mike Walters <mike@flomp.net>
Date: Mon, 22 Feb 2021 20:45:15 +0000
Subject: [PATCH 07/31] spectrogramplot: match types for std::max to fix mac
 build

---
 spectrogramplot.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/spectrogramplot.cpp b/spectrogramplot.cpp
index cca3780..458e7ac 100644
--- a/spectrogramplot.cpp
+++ b/spectrogramplot.cpp
@@ -169,7 +169,7 @@ void SpectrogramPlot::paintAnnotations(QPainter &painter, QRect &rect, range_t<s
     for (int i = 0; i < inputSource->annotationList.size(); i++) {
         Annotation a = inputSource->annotationList.at(i);
 
-        uint64_t descriptionLength = fm.boundingRect(a.description).width() * getStride();
+        size_t descriptionLength = fm.boundingRect(a.description).width() * getStride();
 
         // Check if:
         //  (1) End of annotation (might be maximum, or end of description text) is still visible in time
-- 
2.35.1