fix(gcc): type warning [1/2] (#4332)
This commit is contained in:
parent
9d307c71a6
commit
13db145eec
1 changed files with 2 additions and 2 deletions
|
|
@ -811,7 +811,7 @@ void LoadM2Cameras(const std::string& dataPath)
|
|||
std::streamoff const fileSize = m2file.tellg();
|
||||
|
||||
// Reject if not at least the size of the header
|
||||
if (static_cast<uint32 const>(fileSize) < sizeof(M2Header))
|
||||
if (static_cast<uint32>(fileSize) < sizeof(M2Header))
|
||||
{
|
||||
sLog->outError("Camera file %s is damaged. File is smaller than header size", filename.c_str());
|
||||
m2file.close();
|
||||
|
|
@ -845,7 +845,7 @@ void LoadM2Cameras(const std::string& dataPath)
|
|||
// Read header
|
||||
M2Header const* header = reinterpret_cast<M2Header const*>(buffer.data());
|
||||
|
||||
if (header->ofsCameras + sizeof(M2Camera) > static_cast<uint32 const>(fileSize))
|
||||
if (header->ofsCameras + sizeof(M2Camera) > static_cast<uint32>(fileSize))
|
||||
{
|
||||
sLog->outError("Camera file %s is damaged. Camera references position beyond file end", filename.c_str());
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue