diff --git a/src/rcldb/rcldb.cpp b/src/rcldb/rcldb.cpp index 6069d0a2..2d41e864 100644 --- a/src/rcldb/rcldb.cpp +++ b/src/rcldb/rcldb.cpp @@ -551,7 +551,7 @@ bool Db::Native::getPagePositions(Xapian::docid docid, vector& vpos) int Db::Native::getPageNumberForPosition(const vector& pbreaks, int pos) { - if (pos < baseTextPosition) // Not in text body + if (pos < int(baseTextPosition)) // Not in text body return -1; vector::const_iterator it = upper_bound(pbreaks.begin(), pbreaks.end(), pos);