Windows: fixed a number of int size warnings mostly by casting them away

--HG--
branch : WINDOWSPORT
This commit is contained in:
Jean-Francois Dockes
2015-08-30 17:30:31 +02:00
parent 2858dc2a5e
commit 14c8e740d6
13 changed files with 21 additions and 42 deletions
+1 -1
View File
@@ -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.
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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);