Fix -Wsign-compare warnings

This commit is contained in:
Léo Lam
2020-11-21 01:05:01 +01:00
parent 4b7f784d1b
commit 82f1e6204d
4 changed files with 8 additions and 5 deletions

View File

@ -20,7 +20,7 @@ bool TASCheckBox::GetValue() const
if (checkState() == Qt::PartiallyChecked)
{
const u64 frames_elapsed = Movie::GetCurrentFrame() - m_frame_turbo_started;
return frames_elapsed % m_turbo_total_frames < m_turbo_press_frames;
return static_cast<int>(frames_elapsed % m_turbo_total_frames) < m_turbo_press_frames;
}
return isChecked();