mirror of https://github.com/stella-emu/stella.git
Relaxed constexpr usage in RewindManager, so code compiles in Linux and OSX.
- the code was using C++17 features, and we only support C++14 for now
This commit is contained in:
parent
418b0f07ae
commit
fd5c026034
|
@ -48,7 +48,7 @@ class RewindManager
|
||||||
public:
|
public:
|
||||||
static constexpr int NUM_INTERVALS = 7;
|
static constexpr int NUM_INTERVALS = 7;
|
||||||
// cycle values for the intervals
|
// cycle values for the intervals
|
||||||
static constexpr uInt32 INTERVAL_CYCLES[NUM_INTERVALS] = {
|
const uInt32 INTERVAL_CYCLES[NUM_INTERVALS] = {
|
||||||
76 * 262,
|
76 * 262,
|
||||||
76 * 262 * 3,
|
76 * 262 * 3,
|
||||||
76 * 262 * 10,
|
76 * 262 * 10,
|
||||||
|
@ -70,7 +70,7 @@ class RewindManager
|
||||||
|
|
||||||
static constexpr int NUM_HORIZONS = 8;
|
static constexpr int NUM_HORIZONS = 8;
|
||||||
// cycle values for the horzions
|
// cycle values for the horzions
|
||||||
static constexpr uInt64 HORIZON_CYCLES[NUM_HORIZONS] = {
|
const uInt64 HORIZON_CYCLES[NUM_HORIZONS] = {
|
||||||
76 * 262 * 60 * 3,
|
76 * 262 * 60 * 3,
|
||||||
76 * 262 * 60 * 10,
|
76 * 262 * 60 * 10,
|
||||||
76 * 262 * 60 * 30,
|
76 * 262 * 60 * 30,
|
||||||
|
|
Loading…
Reference in New Issue