suppress 2 compilation warnings (one was actual 64bits bug but inocuous
This commit is contained in:
parent
e809917cf6
commit
b1941fe05d
@ -1,5 +1,5 @@
|
|||||||
#ifndef lint
|
#ifndef lint
|
||||||
static char rcsid[] = "@(#$Id: rcldb.cpp,v 1.55 2006-01-27 13:34:42 dockes Exp $ (C) 2004 J.F.Dockes";
|
static char rcsid[] = "@(#$Id: rcldb.cpp,v 1.56 2006-02-02 08:58:11 dockes Exp $ (C) 2004 J.F.Dockes";
|
||||||
#endif
|
#endif
|
||||||
/*
|
/*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
@ -1323,7 +1323,7 @@ bool Rcl::Db::getDoc(const string &fn, const string &ipath, Doc &doc)
|
|||||||
try {
|
try {
|
||||||
if (!ndb->db.term_exists(pathterm)) {
|
if (!ndb->db.term_exists(pathterm)) {
|
||||||
char len[20];
|
char len[20];
|
||||||
sprintf(len, "%d", pathterm.length());
|
sprintf(len, "%d", int(pathterm.length()));
|
||||||
throw string("path inexistant: [") + pathterm +"] length " + len;
|
throw string("path inexistant: [") + pathterm +"] length " + len;
|
||||||
}
|
}
|
||||||
for (Xapian::PostingIterator docid =
|
for (Xapian::PostingIterator docid =
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
#ifndef lint
|
#ifndef lint
|
||||||
static char rcsid[] = "@(#$Id: pathut.cpp,v 1.8 2006-01-23 13:32:28 dockes Exp $ (C) 2004 J.F.Dockes";
|
static char rcsid[] = "@(#$Id: pathut.cpp,v 1.9 2006-02-02 08:58:11 dockes Exp $ (C) 2004 J.F.Dockes";
|
||||||
#endif
|
#endif
|
||||||
/*
|
/*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
@ -182,7 +182,7 @@ list<std::string> path_dirglob(const std::string &dir,
|
|||||||
if (glob(mypat.c_str(), 0, 0, &mglob)) {
|
if (glob(mypat.c_str(), 0, 0, &mglob)) {
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
for (int i = 0; i < mglob.gl_pathc; i++) {
|
for (int i = 0; i < int(mglob.gl_pathc); i++) {
|
||||||
res.push_back(mglob.gl_pathv[i]);
|
res.push_back(mglob.gl_pathv[i]);
|
||||||
}
|
}
|
||||||
globfree(&mglob);
|
globfree(&mglob);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user