From f1f106cf05096c21db53fc328e4a45aa1e2d7575 Mon Sep 17 00:00:00 2001 From: Joachim Mairboeck Date: Thu, 10 Mar 2022 17:54:33 +0100 Subject: [PATCH] fix signedness warning for 32 bit build --- src/STEPToMesh.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/STEPToMesh.cpp b/src/STEPToMesh.cpp index 42cddf2..3c99b66 100644 --- a/src/STEPToMesh.cpp +++ b/src/STEPToMesh.cpp @@ -112,7 +112,7 @@ void write(const std::string& outFile, const std::vector& namedSolid else { try { int index{std::stoi(sel)}; - if (index < 1 || index > namedSolids.size()) throw std::logic_error{std::string{"Index out of range: "} + sel}; + if (index < 1 || static_cast(index) > namedSolids.size()) throw std::logic_error{std::string{"Index out of range: "} + sel}; builder.Add(compound, namedSolids[index - 1].solid); } catch (const std::invalid_argument&) {