From e275abbd9b8bb443b1162e9886847b87139be4c6 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 25 Apr 2003 11:50:56 +0000 Subject: [PATCH] fixed bug recently introduced in wxSortedArray::Index() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20343 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/dynarray.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/dynarray.cpp b/src/common/dynarray.cpp index 24df3c7ecd..1b812abedc 100644 --- a/src/common/dynarray.cpp +++ b/src/common/dynarray.cpp @@ -250,8 +250,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 */ \