diff options
author | 2016-08-01 01:17:27 +1000 | |
---|---|---|
committer | 2016-08-01 01:20:03 +1000 | |
commit | a0ce6c3b37050c1a765ae13babb109c729153989 (patch) | |
tree | 8ae40b20d0271d82d5780fd588e73a3f34313b98 /src/lib/util/palette.cpp | |
parent | f127621e13050aad6b455ebfadec5bfdcbdd00d4 (diff) |
fix after pass through the diff
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 e918bb7adb2..196031d3694 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<INT32>(ymin, y); - ymax = std::max<INT32>(ymax, y); + ymin = (std::min<UINT32>)(ymin, y); + ymax = (std::max<UINT32>)(ymax, y); } // determine target minimum/maximum |