X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0a53b9b8fe6fc88f243f777db03bafa3a9651701..42124e683da03a7a7463ad9e37d15fda575348af:/include/wx/arrimpl.cpp diff --git a/include/wx/arrimpl.cpp b/include/wx/arrimpl.cpp index d0e3a7f5cd..bde7736639 100644 --- a/include/wx/arrimpl.cpp +++ b/include/wx/arrimpl.cpp @@ -98,7 +98,7 @@ int name::Index(const T& Item, bool bFromEnd) const \ size_t ui = size() - 1; \ do { \ if ( (T*)base_array::operator[](ui) == &Item ) \ - return ui; \ + return wx_static_cast(int, ui); \ ui--; \ } \ while ( ui != 0 ); \ @@ -107,7 +107,7 @@ int name::Index(const T& Item, bool bFromEnd) const \ else { \ for( size_t ui = 0; ui < size(); ui++ ) { \ if( (T*)base_array::operator[](ui) == &Item ) \ - return ui; \ + return wx_static_cast(int, ui); \ } \ } \ \