1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-25 09:18:54 -05:00

ValueDialZ: fixed compilation warning. Fixes #1155

This commit is contained in:
f4exb 2022-02-20 23:02:42 +01:00
parent 308ffcad54
commit 22604244a3
3 changed files with 3 additions and 1 deletions

View File

@ -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 <f4exb06@gmail.com> Sun, 20 Feb 2022 21:31:55 +0100

1
debian/changelog vendored
View File

@ -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 <f4exb06@gmail.com> Sun, 20 Feb 2022 21:31:55 +0100

View File

@ -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;