From a57b3794981c22e8a6b16ebd5987785ec361214a Mon Sep 17 00:00:00 2001 From: Bart Trzynadlowski Date: Sat, 11 Nov 2023 13:46:05 -0800 Subject: [PATCH] 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. --- Src/Model3/DSB.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Src/Model3/DSB.h b/Src/Model3/DSB.h index 411ab08..cbe00fc 100644 --- a/Src/Model3/DSB.h +++ b/Src/Model3/DSB.h @@ -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; };