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
This commit is contained in:
Vadim Zeitlin
2003-04-25 11:50:56 +00:00
parent 4115304e1f
commit e275abbd9b

View File

@@ -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 */ \