mirror of
https://github.com/UltimMC/Launcher.git
synced 2025-12-13 20:22:13 +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:
@@ -35,7 +35,7 @@ void KonamiCode::input(QEvent* event)
|
|||||||
{
|
{
|
||||||
m_progress = 0;
|
m_progress = 0;
|
||||||
}
|
}
|
||||||
if(m_progress == konamiCode.size())
|
if(m_progress == static_cast<int>(konamiCode.size()))
|
||||||
{
|
{
|
||||||
m_progress = 0;
|
m_progress = 0;
|
||||||
emit triggered();
|
emit triggered();
|
||||||
|
|||||||
Reference in New Issue
Block a user