Windows: fixed a number of int size warnings mostly by casting them away
--HG-- branch : WINDOWSPORT
This commit is contained in:
@@ -386,7 +386,7 @@ int Query::Native::makeAbstract(Xapian::docid docid,
|
||||
for (multimap<double, vector<string> >::reverse_iterator mit = byQ.rbegin();
|
||||
mit != byQ.rend(); mit++) {
|
||||
unsigned int maxgrpoccs;
|
||||
float q;
|
||||
double q;
|
||||
if (byQ.size() == 1) {
|
||||
maxgrpoccs = maxtotaloccs;
|
||||
q = 1.0;
|
||||
|
||||
+1
-2
@@ -549,8 +549,7 @@ bool Db::Native::getPagePositions(Xapian::docid docid, vector<int>& vpos)
|
||||
return true;
|
||||
}
|
||||
|
||||
int Db::Native::getPageNumberForPosition(const vector<int>& pbreaks,
|
||||
unsigned int pos)
|
||||
int Db::Native::getPageNumberForPosition(const vector<int>& pbreaks, int pos)
|
||||
{
|
||||
if (pos < baseTextPosition) // Not in text body
|
||||
return -1;
|
||||
|
||||
+1
-1
@@ -120,7 +120,7 @@ class Db::Native {
|
||||
const string& uniterm);
|
||||
|
||||
bool getPagePositions(Xapian::docid docid, vector<int>& vpos);
|
||||
int getPageNumberForPosition(const vector<int>& pbreaks, unsigned int pos);
|
||||
int getPageNumberForPosition(const vector<int>& pbreaks, int pos);
|
||||
|
||||
bool dbDataToRclDoc(Xapian::docid docid, std::string &data, Doc &doc);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user