From 87d874cd955cb9edf70094105ec42280df94a34a Mon Sep 17 00:00:00 2001 From: smf- Date: Sat, 25 Nov 2017 21:03:41 +0000 Subject: Visual Studio 2017 complains about putting a double into a float array and then passing it to a function that takes a double. (nw) --- src/mame/drivers/chqflag.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mame/drivers/chqflag.cpp b/src/mame/drivers/chqflag.cpp index c0b9c6d2e41..f7329ce2271 100644 --- a/src/mame/drivers/chqflag.cpp +++ b/src/mame/drivers/chqflag.cpp @@ -83,8 +83,8 @@ WRITE8_MEMBER(chqflag_state::chqflag_vreg_w) * * TODO: true values aren't known, also shadow_factors table probably scales towards zero instead (game doesn't use those) */ - const float shadow_factors[4] = {0.8, 1.33, 1.66, 2.0 }; - const float highlight_factors[4] = {1.0, 1.33, 1.66, 2.0 }; + const double shadow_factors[4] = {0.8, 1.33, 1.66, 2.0 }; + const double highlight_factors[4] = {1.0, 1.33, 1.66, 2.0 }; uint8_t shadow_value = ((data & 0x80) >> 6) | ((data & 0x08) >> 3); m_palette->set_shadow_factor(m_last_vreg != 0 ? highlight_factors[shadow_value] : shadow_factors[shadow_value] ); -- cgit v1.2.3