Fix signed/unsigned comparison warning in wxAuiMDIClientWindow

This was introduced in c2fcc14bac, see
https://github.com/wxWidgets/wxWidgets/pull/802
This commit is contained in:
Vadim Zeitlin 2018-05-15 18:45:37 +02:00
parent f53923dd31
commit 67cb0ad260

View File

@ -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);