From 22604244a3dc3439f0a7d2f4ed2bcf853baada1f Mon Sep 17 00:00:00 2001 From: f4exb Date: Sun, 20 Feb 2022 23:02:42 +0100 Subject: [PATCH] ValueDialZ: fixed compilation warning. Fixes #1155 --- CHANGELOG | 1 + debian/changelog | 1 + sdrgui/gui/valuedialz.cpp | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index c289cd9e86..a16dadcf00 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -11,6 +11,7 @@ sdrangel (6.19.1-1) unstable; urgency=medium * Metis MISO: save stream and spectrum stream indices in settings. Fixes #1126 * Map feature, ADSB and AIS demods updates. PR #1135 * Do not write tail audio samples and write to sample buffer only if necessary. Issue #1132 + * ValueDialZ: fixed compilation warning, Fixes #1155 -- Edouard Griffiths, F4EXB Sun, 20 Feb 2022 21:31:55 +0100 diff --git a/debian/changelog b/debian/changelog index 4d23fef38f..7d3f68355e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -11,6 +11,7 @@ sdrangel (6.19.1-1) unstable; urgency=medium * Metis MISO: save stream and spectrum stream indices in settings. Fixes #1126 * Map feature, ADSB and AIS demods updates. PR #1135 * Do not write tail audio samples and write to sample buffer only if necessary. Issue #1132 + * ValueDialZ: fixed compilation warning, Fixes #1155 -- Edouard Griffiths, F4EXB Sun, 20 Feb 2022 21:31:55 +0100 diff --git a/sdrgui/gui/valuedialz.cpp b/sdrgui/gui/valuedialz.cpp index 9624eb9ad4..d0e118fed6 100644 --- a/sdrgui/gui/valuedialz.cpp +++ b/sdrgui/gui/valuedialz.cpp @@ -136,7 +136,7 @@ void ValueDialZ::setValue(qint64 value) void ValueDialZ::setValueRange(bool positiveOnly, uint numDigits, qint64 min, qint64 max, int decimalPos) { m_positiveOnly = positiveOnly; - m_decimalPos = decimalPos < 0 ? 0 : decimalPos > numDigits ? numDigits : decimalPos; + m_decimalPos = decimalPos < 0 ? 0 : decimalPos > (int) numDigits ? numDigits : decimalPos; m_numDigits = numDigits; m_numThousandPoints = m_numDigits < 3 ? 0 : (m_numDigits%3) == 0 ? (m_numDigits/3)-1 : m_numDigits/3;