Skip to content

Commit

Permalink
#163 Fix a warnings. Thank you @LeoPizzo1🙇
Browse files Browse the repository at this point in the history
  • Loading branch information
artem-ogre committed Nov 15, 2023
1 parent c34211f commit 58f34da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CDT/include/Triangulation.h
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,7 @@ class CDT_EXPORT Triangulation

std::vector<TriInd> m_dummyTris;
TNearPointLocator m_nearPtLocator;
std::size_t m_nTargetVerts;
IndexSizeType m_nTargetVerts;
SuperGeometryType::Enum m_superGeomType;
VertexInsertionOrder::Enum m_vertexInsertionOrder;
IntersectingConstraintEdges::Enum m_intersectingEdgesStrategy;
Expand Down
5 changes: 3 additions & 2 deletions CDT/include/Triangulation.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ template <typename T, typename TNearPointLocator>
void Triangulation<T, TNearPointLocator>::initializedWithCustomSuperGeometry()
{
m_nearPtLocator.initialize(vertices);
m_nTargetVerts = vertices.size();
m_nTargetVerts = static_cast<IndexSizeType>(vertices.size());
m_superGeomType = SuperGeometryType::Custom;
}

Expand Down Expand Up @@ -1944,7 +1944,8 @@ void Triangulation<T, TNearPointLocator>::insertVertices_KDTreeBFS(
V2d<T> boxMax)
{
// calculate original indices
const VertInd vertexCount = vertices.size() - superGeomVertCount;
const VertInd vertexCount =
static_cast<IndexSizeType>(vertices.size()) - superGeomVertCount;
if(vertexCount <= 0)
return;
std::vector<VertInd> ii(vertexCount);
Expand Down

0 comments on commit 58f34da

Please sign in to comment.