summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/util/palette.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/util/palette.cpp')
-rw-r--r--src/lib/util/palette.cpp4
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