Skip to content

Commit

Permalink
Update XFileParser.cpp
Browse files Browse the repository at this point in the history
Fix compiler warnings.
  • Loading branch information
kimkulling committed Jun 16, 2018
1 parent 3e45acb commit d416fe8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/XFileParser.cpp
Expand Up @@ -472,7 +472,7 @@ void XFileParser::ParseDataObjectMesh( Mesh* pMesh)
Face& face = pMesh->mPosFaces[a];
for (unsigned int b = 0; b < numIndices; ++b) {
const int idx( ReadInt() );
if ( idx <= numVertices ) {
if ( static_cast<unsigned int>( idx ) <= numVertices ) {
face.mIndices.push_back( idx );
}
}
Expand Down Expand Up @@ -1309,7 +1309,7 @@ unsigned int XFileParser::ReadInt()

--mBinaryNumCount;
const size_t len( mEnd - mP );
if ( mEnd - mP >= 4) {
if ( len >= 4) {
return ReadBinDWord();
} else {
mP = mEnd;
Expand Down

0 comments on commit d416fe8

Please sign in to comment.