Skip to content

Commit

Permalink
Explicit conversion of a quantity that should be positive to unsigned…
Browse files Browse the repository at this point in the history
… to avoid compiler warning.
  • Loading branch information
russell-taylor committed Jul 4, 2015
1 parent 65374b0 commit c09eb04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/ACLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ aiNode* AC3DImporter::ConvertObjectSection(Object& object,
face.mIndices[i] = cur++;

// copy vertex positions
if ((vertices - mesh->mVertices) >= mesh->mNumVertices) {
if (static_cast<unsigned>(vertices - mesh->mVertices) >= mesh->mNumVertices) {
throw DeadlyImportError("AC3D: Invalid number of vertices");
}
*vertices = object.vertices[entry.first] + object.translation;
Expand Down

0 comments on commit c09eb04

Please sign in to comment.