From: Vadim Zeitlin Date: Fri, 25 Apr 2003 12:06:25 +0000 (+0000) Subject: fixed bug recently introduced in wxSortedArray::Index() X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/c8011d7377e2b715ed2a7d4ff8f6413771ece31c fixed bug recently introduced in wxSortedArray::Index() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20344 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/dynarray.cpp b/src/common/dynarray.cpp index 012c6077a3..573114aec0 100644 --- a/src/common/dynarray.cpp +++ b/src/common/dynarray.cpp @@ -285,8 +285,8 @@ int name::Index(T lItem, CMPFUNC fnCompare) const \ \ return n < m_nCount && \ (*fnCompare)((const void *)(long)lItem, \ - ((const void *)(long)m_pItems[n])) ? (int)n \ - : wxNOT_FOUND; \ + ((const void *)(long)m_pItems[n])) ? wxNOT_FOUND \ + : (int)n; \ } \ \ /* add item at the end */ \