Core: Fixed warnings in Obsolete.h

git-svn-id: svn://ultimatepp.org/upp/trunk@12853 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2019-03-19 17:45:40 +00:00
parent ca37acf7e6
commit 6b6021c523

View file

@ -214,16 +214,16 @@ T Find(T ptr, T end, const V& value)
}
template <class I, class K, class L>
int BinFindIndex(I begin, I end, const K& key, const L& less)
size_t BinFindIndex(I begin, I end, const K& key, const L& less)
{
if(begin == end)
return 0;
int min = 0;
int max = end - begin;
size_t min = 0;
size_t max = end - begin;
while(min < max)
{
int mid = (max + min) >> 1;
size_t mid = (max + min) >> 1;
if(less(*(begin + mid), key))
min = mid + 1;
else