fix bogus signedness warning

--HG--
branch : WINDOWSPORT
This commit is contained in:
Jean-Francois Dockes 2015-08-30 17:45:19 +02:00
parent 14c8e740d6
commit 853cdea7d7

View File

@ -551,7 +551,7 @@ bool Db::Native::getPagePositions(Xapian::docid docid, vector<int>& vpos)
int Db::Native::getPageNumberForPosition(const vector<int>& pbreaks, int pos)
{
if (pos < baseTextPosition) // Not in text body
if (pos < int(baseTextPosition)) // Not in text body
return -1;
vector<int>::const_iterator it =
upper_bound(pbreaks.begin(), pbreaks.end(), pos);