X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b54e41c5298568d48a7a1fa532b2653288a8713c..ec7cd4c478ae1a192c21a89a41bd499e5bc0908a:/src/common/dynarray.cpp diff --git a/src/common/dynarray.cpp b/src/common/dynarray.cpp index a081998ac9..2d8e162378 100644 --- a/src/common/dynarray.cpp +++ b/src/common/dynarray.cpp @@ -212,7 +212,7 @@ int wxBaseArray::Index(long lItem, CMPFUNC fnCompare) const { size_t n = IndexForInsert(lItem, fnCompare); - return n < m_nCount && m_pItems[n] == lItem ? n : wxNOT_FOUND; + return n < m_nCount && m_pItems[n] == lItem ? (int)n : wxNOT_FOUND; } // add item at the end