mirror of https://github.com/stella-emu/stella.git
Make compiler happy.
This commit is contained in:
parent
c5aad2ae7a
commit
13eefbb542
|
@ -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)))
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue