diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index 4e3588f7e3..83f14c0b82 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -4320,7 +4320,7 @@ void wxListMainWindow::InsertItem( wxListItem &item ) { wxASSERT_MSG( !IsVirtual(), _T("can't be used with virtual control") ); - size_t count = GetItemCount(); + int count = GetItemCount(); wxCHECK_RET( item.m_itemId >= 0, _T("invalid item index") ); if (item.m_itemId > count)