From 061bd7ee6ac833672fc296305ecbbee4a477b9d0 Mon Sep 17 00:00:00 2001 From: Martin Marinov Date: Wed, 13 May 2020 02:14:14 +0100 Subject: [PATCH] Fix a size_t to int cast warning --- src/OpenMesh/Core/IO/writer/OBJWriter.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OpenMesh/Core/IO/writer/OBJWriter.cc b/src/OpenMesh/Core/IO/writer/OBJWriter.cc index bda4a97a..681fbfb1 100644 --- a/src/OpenMesh/Core/IO/writer/OBJWriter.cc +++ b/src/OpenMesh/Core/IO/writer/OBJWriter.cc @@ -274,7 +274,7 @@ write(std::ostream& _out, BaseExporter& _be, Options _opt, std::streamsize _prec unsigned int num = _be.get_face_texcoords(texCoords); for(size_t i = 0; i < num ; ++i) { - texMap[texCoords[i]] = i; + texMap[texCoords[i]] = static_cast(i); } }