summaryrefslogtreecommitdiff
path: root/games-util/antimicro/files
diff options
context:
space:
mode:
Diffstat (limited to 'games-util/antimicro/files')
-rw-r--r--games-util/antimicro/files/antimicro-2.23-gcc11-ptr-compare.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/games-util/antimicro/files/antimicro-2.23-gcc11-ptr-compare.patch b/games-util/antimicro/files/antimicro-2.23-gcc11-ptr-compare.patch
new file mode 100644
index 000000000000..2ed157c1e84b
--- /dev/null
+++ b/games-util/antimicro/files/antimicro-2.23-gcc11-ptr-compare.patch
@@ -0,0 +1,12 @@
+https://bugs.gentoo.org/791145
+--- a/src/mainwindow.cpp
++++ b/src/mainwindow.cpp
+@@ -364,7 +364,7 @@ void MainWindow::makeJoystickTabs()
+ ui->tabWidget->addTab(tabwidget, joytabName);
+ }
+
+- if (joysticks > 0)
++ if (joysticks->size() > 0)
+ {
+ ui->tabWidget->setCurrentIndex(0);
+ ui->stackedWidget->setCurrentIndex(1);