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