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