attempt to remove warnings

This commit is contained in:
thrust26 2017-11-15 23:41:15 +01:00
parent 838b277c0a
commit 524548a08a
1 changed files with 4 additions and 4 deletions

View File

@ -185,11 +185,11 @@ string RewindManager::getMessage(RewindState& state)
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
string RewindManager::getUnitString(Int64 cycles) string RewindManager::getUnitString(Int64 cycles)
{ {
const uInt64 scanlines = myOSystem.console().tia().scanlinesLastFrame(); const Int64 scanlines = myOSystem.console().tia().scanlinesLastFrame();
const bool isNTSC = scanlines <= 285; // TODO: replace magic number const bool isNTSC = scanlines <= 285; // TODO: replace magic number
const uInt64 NTSC_FREQ = 1193182; // ~76*262*60 const Int64 NTSC_FREQ = 1193182; // ~76*262*60
const uInt64 PAL_FREQ = 1182298; // ~76*312*50 const Int64 PAL_FREQ = 1182298; // ~76*312*50
const uInt64 freq = isNTSC ? NTSC_FREQ : PAL_FREQ; // = cycles/second const Int64 freq = isNTSC ? NTSC_FREQ : PAL_FREQ; // = cycles/second
string unit; string unit;
Int64 diffUnit; Int64 diffUnit;