From 13eefbb542c006c748979134cd820eab5b826caf Mon Sep 17 00:00:00 2001 From: Christian Speckner Date: Sun, 28 Jan 2018 23:50:50 +0100 Subject: [PATCH] Make compiler happy. --- src/emucore/tia/Audio.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/emucore/tia/Audio.cxx b/src/emucore/tia/Audio.cxx index 3397af214..0e6d4b03b 100644 --- a/src/emucore/tia/Audio.cxx +++ b/src/emucore/tia/Audio.cxx @@ -26,7 +26,9 @@ namespace { Int16 mixingTableEntry(uInt8 v, uInt8 vMax) { - return floor(0x7fff * double(v) / double(vMax) * (R_MAX + R * double(vMax)) / (R_MAX + R * double(v))); + return static_cast( + floor(0x7fff * double(v) / double(vMax) * (R_MAX + R * double(vMax)) / (R_MAX + R * double(v))) + ); } }