mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-11-20 08:10:11 +00:00
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:
parent
e5804b1279
commit
3a1abb555b
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user