- cleaned up some warnings from VC++ compiler

This commit is contained in:
Mark Vejvoda
2012-10-06 02:40:24 +00:00
parent c39da4cd69
commit 97ba1a27e2
10 changed files with 20 additions and 20 deletions

View File

@@ -265,10 +265,10 @@ bool Checksum::addFileToSum(const string &path) {
// Determine the file length
ifs.seekg(0, ios::end);
std::size_t size=ifs.tellg();
std::streamoff size=ifs.tellg();
ifs.seekg(0, ios::beg);
int bufSize = size / sizeof(char);
unsigned int bufSize = (unsigned int)size / sizeof(char);
// Create a vector to store the data
std::vector<char> buf(bufSize);
// Load the data