diff options
| author | Christoph Berg <myon@debian.org> | 2022-08-08 23:08:31 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2022-08-08 23:08:31 +0200 |
| commit | dca111ba9c5235bb1a16d62c6999939bc1ac4cbe (patch) | |
| tree | 4eec80a7d177c16b0cbfe19219490c5b5c635367 /Radio.cpp | |
| parent | 231d846d6f285b93cf8fa3df50492d6b51446a4c (diff) | |
| parent | 43bebfbad6e7ba026bd3d55720c7d9e12a7ef8ef (diff) | |
Update upstream source from tag 'upstream/2.6.0_rc2+repack'
Update to upstream version '2.6.0~rc2+repack'
with Debian dir 381b71368ce7055e3f42f51abf3971cbbbbbd178
Diffstat (limited to 'Radio.cpp')
| -rwxr-xr-x | Radio.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -54,7 +54,7 @@ namespace Radio value *= std::pow (10., scale); if (ok) { - if (value < 0. || value > std::numeric_limits<Frequency>::max ()) + if (value < 0. || value > static_cast<double>(std::numeric_limits<Frequency>::max ())) { value = 0.; *ok = false; @@ -91,8 +91,8 @@ namespace Radio value *= std::pow (10., scale); if (ok) { - if (value < -std::numeric_limits<Frequency>::max () - || value > std::numeric_limits<Frequency>::max ()) + if (value < static_cast<double>(std::numeric_limits<Frequency>::min ()) + || value > static_cast<double>(std::numeric_limits<Frequency>::max ())) { value = 0.; *ok = false; |
