summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
author couriersud <couriersud@gmx.org>2017-02-24 14:58:34 +0100
committer couriersud <couriersud@gmx.org>2017-02-24 14:58:34 +0100
commit454938dad4b5b3ce72e85df43e062ac193be2975 (patch)
tree11e7f0d83f048407c942faf3703f07690fac9177 /src
parent7c1ba76f3b68f9a1968405bc7732d61e1ecd144f (diff)
Fix clang-5.0 warning .. Maximum of unsigned X and 0 is always X. (nw)
Diffstat (limited to 'src')
-rw-r--r--src/lib/util/palette.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/util/palette.cpp b/src/lib/util/palette.cpp
index 3a1aff648a1..f1a6a002ce9 100644
--- a/src/lib/util/palette.cpp
+++ b/src/lib/util/palette.cpp
@@ -492,7 +492,7 @@ void palette_t::group_set_contrast(uint32_t group, float contrast)
void palette_t::normalize_range(uint32_t start, uint32_t end, int lum_min, int lum_max)
{
// clamp within range
- start = std::max(start, 0U);
+ // start = std::max(start, 0U); ==> reduces to start = start
end = std::min(end, m_numcolors - 1);
// find the minimum and maximum brightness of all the colors in the range