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))) + ); } }