X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b54e41c5298568d48a7a1fa532b2653288a8713c..038072e2f1eaf2bf32d748a71234d767ebba8919:/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