From c09eb045a1bf5f49d2c14d69076d41d60f528ccf Mon Sep 17 00:00:00 2001 From: Russ Taylor Date: Sat, 4 Jul 2015 18:08:31 -0400 Subject: [PATCH] Explicit conversion of a quantity that should be positive to unsigned to avoid compiler warning. --- code/ACLoader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/ACLoader.cpp b/code/ACLoader.cpp index 637f51a77..5b7b6a61d 100644 --- a/code/ACLoader.cpp +++ b/code/ACLoader.cpp @@ -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(vertices - mesh->mVertices) >= mesh->mNumVertices) { throw DeadlyImportError("AC3D: Invalid number of vertices"); } *vertices = object.vertices[entry.first] + object.translation;