Fixed compiler warning.

This commit is contained in:
yhirose 2015-02-19 19:52:00 -05:00
parent 42c9d06221
commit 59153dfdbd

View File

@ -17,7 +17,7 @@ bool read_file(const char* path, vector<char>& buff)
return false;
}
buff.resize(ifs.seekg(0, ios::end).tellg());
buff.resize(static_cast<unsigned int>(ifs.seekg(0, ios::end).tellg()));
ifs.seekg(0, ios::beg).read(&buff[0], static_cast<streamsize>(buff.size()));
return true;
}