Windows: fixed a number of int size warnings mostly by casting them away
--HG-- branch : WINDOWSPORT
This commit is contained in:
@@ -140,7 +140,7 @@ namespace Dijon
|
||||
stat() calls The value is stored inside metaData, docsize
|
||||
key
|
||||
*/
|
||||
virtual void set_docsize(size_t size) = 0;
|
||||
virtual void set_docsize(off_t size) = 0;
|
||||
|
||||
// Going from one nested document to the next.
|
||||
|
||||
|
||||
@@ -169,7 +169,7 @@ void FileInterner::init(const string &f, const struct stat *stp, RclConfig *cnf,
|
||||
l_mime = *imime;
|
||||
}
|
||||
|
||||
size_t docsize = stp->st_size;
|
||||
off_t docsize = stp->st_size;
|
||||
|
||||
if (!l_mime.empty()) {
|
||||
// Has mime: check for a compressed file. If so, create a
|
||||
|
||||
@@ -91,7 +91,7 @@ public:
|
||||
return set_document_string(mtype, std::string(cp, sz));
|
||||
}
|
||||
|
||||
virtual void set_docsize(size_t size)
|
||||
virtual void set_docsize(off_t size)
|
||||
{
|
||||
char csize[30];
|
||||
sprintf(csize, "%lld", (long long)size);
|
||||
|
||||
Reference in New Issue
Block a user