From 992194b1b9f9a75242a2ba10a9dd8442ac0ca269 Mon Sep 17 00:00:00 2001 From: Sebastian Matusik Date: Thu, 5 Jul 2018 15:15:50 +0100 Subject: [PATCH] Removed signed int vs unsigned int comparison in for loops --- code/glTF2Importer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/glTF2Importer.cpp b/code/glTF2Importer.cpp index 969afa405..7b19dda50 100644 --- a/code/glTF2Importer.cpp +++ b/code/glTF2Importer.cpp @@ -462,7 +462,7 @@ void glTF2Importer::ImportMeshes(glTF2::Asset& r) if (target.position.size() > 0) { aiVector3D *positionDiff = nullptr; target.position[0]->ExtractData(positionDiff); - for(int vertexId = 0; vertexId < aim->mNumVertices; vertexId++) { + for(unsigned int vertexId = 0; vertexId < aim->mNumVertices; vertexId++) { aiAnimMesh.mVertices[vertexId] += positionDiff[vertexId]; } delete [] positionDiff; @@ -470,7 +470,7 @@ void glTF2Importer::ImportMeshes(glTF2::Asset& r) if (target.normal.size() > 0) { aiVector3D *normalDiff = nullptr; target.normal[0]->ExtractData(normalDiff); - for(int vertexId = 0; vertexId < aim->mNumVertices; vertexId++) { + for(unsigned int vertexId = 0; vertexId < aim->mNumVertices; vertexId++) { aiAnimMesh.mNormals[vertexId] += normalDiff[vertexId]; } delete [] normalDiff;