DSB.h: when generating a debug build in gcc w/ -g, k_framePeriod was causing a linker error. Not sure why k_timerPeriod wasn't but made them both constexpr.

This commit is contained in:
Bart Trzynadlowski 2023-11-11 13:46:05 -08:00
parent ccca9afceb
commit a57b379498

View file

@ -324,8 +324,8 @@ private:
// M68K CPU
M68KCtx M68K;
static const int k_framePeriod = 11000000/60;
static const int k_timerPeriod = 11000000/1000; // 1KHz timer
static constexpr int k_framePeriod = 11000000/60;
static constexpr int k_timerPeriod = 11000000/1000; // 1KHz timer
int m_cyclesElapsedThisFrame;
int m_nextTimerInterruptCycles;
};