X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7e48f6d96450ca4de43069a6ff0308a74f07d05d..f21467d8ec6c42606f2e875a286909984722d4b6:/samples/checklst/checklst.cpp diff --git a/samples/checklst/checklst.cpp b/samples/checklst/checklst.cpp index 9ae58191f4..bbf3d8b96e 100644 --- a/samples/checklst/checklst.cpp +++ b/samples/checklst/checklst.cpp @@ -499,7 +499,7 @@ void CheckListBoxFrame::OnButtonMove(bool up) wxString label = m_pListBox->GetString(selection); int positionNew = up ? selection - 1 : selection + 2; - if ( positionNew < 0 || positionNew > m_pListBox->GetCount() ) + if ( positionNew < 0 || positionNew > (int)m_pListBox->GetCount() ) { wxLogStatus(this, wxT("Can't move this item %s"), up ? wxT("up") : wxT("down")); }