Fix a size_t to int cast warning

This commit is contained in:
Martin Marinov
2020-05-13 02:14:14 +01:00
parent a756bff460
commit 061bd7ee6a

View File

@@ -274,7 +274,7 @@ write(std::ostream& _out, BaseExporter& _be, Options _opt, std::streamsize _prec
unsigned int num = _be.get_face_texcoords(texCoords); unsigned int num = _be.get_face_texcoords(texCoords);
for(size_t i = 0; i < num ; ++i) for(size_t i = 0; i < num ; ++i)
{ {
texMap[texCoords[i]] = i; texMap[texCoords[i]] = static_cast<int>(i);
} }
} }