diff options
author | 2016-07-31 16:41:26 +0200 | |
---|---|---|
committer | 2016-07-31 16:41:26 +0200 | |
commit | eaa70ae0313eb1135ba63814f07f7e22c766a504 (patch) | |
tree | 05c83f83b795f524e895609e19dbd452ce538816 /src/lib/util/palette.cpp | |
parent | d0bf3221eadc1ad268dc36e8d540ecc81ccbf765 (diff) |
cleanup of some conversions (nw)
Diffstat (limited to 'src/lib/util/palette.cpp')
-rw-r--r-- | src/lib/util/palette.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/util/palette.cpp b/src/lib/util/palette.cpp index bbee6b321cd..e918bb7adb2 100644 --- a/src/lib/util/palette.cpp +++ b/src/lib/util/palette.cpp @@ -514,8 +514,8 @@ void palette_t::normalize_range(UINT32 start, UINT32 end, int lum_min, int lum_m { rgb_t rgb = m_entry_color[index]; UINT32 y = 299 * rgb.r() + 587 * rgb.g() + 114 * rgb.b(); - ymin = std::min(ymin, INT32(y)); - ymax = std::max(ymax, INT32(y)); + ymin = std::min<INT32>(ymin, y); + ymax = std::max<INT32>(ymax, y); } // determine target minimum/maximum |