Explicit conversion of a quantity that should be positive to unsigned to avoid compiler warning.

pull/603/head
Russ Taylor 2015-07-04 18:08:31 -04:00
parent 65374b085d
commit c09eb045a1
1 changed files with 1 additions and 1 deletions

View File

@ -620,7 +620,7 @@ aiNode* AC3DImporter::ConvertObjectSection(Object& object,
face.mIndices[i] = cur++; face.mIndices[i] = cur++;
// copy vertex positions // 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"); throw DeadlyImportError("AC3D: Invalid number of vertices");
} }
*vertices = object.vertices[entry.first] + object.translation; *vertices = object.vertices[entry.first] + object.translation;