Make compiler happy.

This commit is contained in:
Christian Speckner 2018-01-28 23:50:50 +01:00
parent c5aad2ae7a
commit 13eefbb542
1 changed files with 3 additions and 1 deletions

View File

@ -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<Int16>(
floor(0x7fff * double(v) / double(vMax) * (R_MAX + R * double(vMax)) / (R_MAX + R * double(v)))
);
}
}