X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/34a0c9f4c1b3444737ff145721e03ecaee6af4b2..d3e780ecdf69233c872d51216eedbc64a1b6db25:/src/generic/mdig.cpp diff --git a/src/generic/mdig.cpp b/src/generic/mdig.cpp index 3a2c74d4d2..e0b951be0e 100644 --- a/src/generic/mdig.cpp +++ b/src/generic/mdig.cpp @@ -439,7 +439,7 @@ wxGenericMDIChildFrame::~wxGenericMDIChildFrame() } else { - if (pClientWindow->GetPageCount() - 1 >= 0) + if ((int)pClientWindow->GetPageCount() - 1 >= 0) pClientWindow->SetSelection(pClientWindow->GetPageCount() - 1); } } @@ -714,7 +714,7 @@ bool wxGenericMDIClientWindow::CreateClient( wxGenericMDIParentFrame *parent, lo return FALSE; } -int wxGenericMDIClientWindow::SetSelection(int nPage) +int wxGenericMDIClientWindow::SetSelection(size_t nPage) { int oldSelection = wxNotebook::SetSelection(nPage);