mirror of https://github.com/stella-emu/stella.git
Fix clang warning.
This commit is contained in:
parent
2d40a7e0d2
commit
68c34c5bad
|
@ -459,8 +459,8 @@ void FrameBuffer::update(UpdateMode mode)
|
||||||
frames = std::round(std::sqrt(stateFrames));
|
frames = std::round(std::sqrt(stateFrames));
|
||||||
|
|
||||||
// Mute sound if saved states were removed or states are too far apart
|
// Mute sound if saved states were removed or states are too far apart
|
||||||
myOSystem.sound().mute(stateFrames > intervalFrames
|
myOSystem.sound().mute(stateFrames > intervalFrames ||
|
||||||
|| frames > myOSystem.audioSettings().bufferSize() / 2 + 1);
|
frames > static_cast<int>(myOSystem.audioSettings().bufferSize() / 2 + 1));
|
||||||
}
|
}
|
||||||
redraw |= success;
|
redraw |= success;
|
||||||
if(redraw)
|
if(redraw)
|
||||||
|
|
Loading…
Reference in New Issue