From 67cb0ad26043270c1fb9b9681a4d365a9e2f4d57 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 15 May 2018 18:45:37 +0200 Subject: [PATCH] Fix signed/unsigned comparison warning in wxAuiMDIClientWindow This was introduced in c2fcc14bac7910d04fd9f064136fb5cd5f6fca28, see https://github.com/wxWidgets/wxWidgets/pull/802 --- src/aui/tabmdi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aui/tabmdi.cpp b/src/aui/tabmdi.cpp index c484d9b701..c27b6ba90b 100644 --- a/src/aui/tabmdi.cpp +++ b/src/aui/tabmdi.cpp @@ -820,7 +820,7 @@ int wxAuiMDIClientWindow::SetSelection(size_t nPage) wxAuiMDIChildFrame* wxAuiMDIClientWindow::GetActiveChild() { const int sel = GetSelection(); - if ( sel == wxNOT_FOUND || sel >= GetPageCount() ) + if ( sel == wxNOT_FOUND || sel >= (int)GetPageCount() ) return NULL; return wxStaticCast(GetPage(sel), wxAuiMDIChildFrame);