Addressed warnings generated on MSVC across x86 and x64.

This commit is contained in:
Jared Mulconry
2017-09-24 19:29:43 +10:00
parent b5ac248703
commit 059a32654e
5 changed files with 12 additions and 3 deletions

View File

@@ -118,7 +118,7 @@ void MMDImporter::InternReadFile(const std::string &file, aiScene *pScene,
// Get the file-size and validate it, throwing an exception when fails
fileStream.seekg(0, fileStream.end);
size_t fileSize = fileStream.tellg();
size_t fileSize = static_cast<size_t>(fileStream.tellg());
fileStream.seekg(0, fileStream.beg);
if (fileSize < sizeof(pmx::PmxModel)) {