mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
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:
parent
ca37acf7e6
commit
6b6021c523
1 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue