GH-3575 Fix build on Fedora 34

Presumably this is caused by the bump to GCC 11 in Fedora 34. See
the error that did occur below...

    ./MultiMC5/application/KonamiCode.cpp: In member function ‘void KonamiCode::input(QEvent*)’:
    ./MultiMC5/application/KonamiCode.cpp:38:23: error: comparison of integer expressions of different signedness: ‘int’ and ‘std::array<Qt::Key, 10>::size_type’ {aka ‘long unsigned int’} [-Werror=sign-compare]
       38 |         if(m_progress == konamiCode.size())
          |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
This commit is contained in:
Jamie Mansfield 2021-04-05 21:10:37 +01:00
parent e5804b1279
commit 3a1abb555b
No known key found for this signature in database
GPG Key ID: 36F61598F39F67B0

View File

@ -35,7 +35,7 @@ void KonamiCode::input(QEvent* event)
{
m_progress = 0;
}
if(m_progress == konamiCode.size())
if(m_progress == static_cast<int>(konamiCode.size()))
{
m_progress = 0;
emit triggered();