X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/102540a046870ad87b46c6016743a2ab90dc0f13..14619f10b0bdb630206607abd0ce0319d45e095a:/include/wx/list.h diff --git a/include/wx/list.h b/include/wx/list.h index ed34130a16..7a96c25152 100644 --- a/include/wx/list.h +++ b/include/wx/list.h @@ -218,7 +218,7 @@ inline const void *wxListCastElementToVoidPtr(const wxString& str) } \ int IndexOf() const \ { \ - return *this ? std::distance( m_list->begin(), m_iter ) \ + return *this ? (int)std::distance( m_list->begin(), m_iter ) \ : wxNOT_FOUND; \ } \ }; \