summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/cdp1864.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/sound/cdp1864.cpp')
-rw-r--r--src/devices/sound/cdp1864.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/devices/sound/cdp1864.cpp b/src/devices/sound/cdp1864.cpp
index b4859cee4a3..9b1d1807d96 100644
--- a/src/devices/sound/cdp1864.cpp
+++ b/src/devices/sound/cdp1864.cpp
@@ -427,9 +427,9 @@ UINT32 cdp1864_device::screen_update(screen_device &screen, bitmap_rgb32 &bitmap
void cdp1864_device::initialize_palette()
{
- const int resistances_r[] = { m_chr_r };
- const int resistances_g[] = { m_chr_g };
- const int resistances_b[] = { m_chr_b };
+ const int resistances_r[] = { static_cast<int>(m_chr_r) };
+ const int resistances_g[] = { static_cast<int>(m_chr_g) };
+ const int resistances_b[] = { static_cast<int>(m_chr_b) };
double color_weights_r[1], color_weights_g[1], color_weights_b[1];
double color_weights_bkg_r[1], color_weights_bkg_g[1], color_weights_bkg_b[1];