Skip to content

Commit 58f34da

Browse files
committed
#163 Fix a warnings. Thank you @LeoPizzo1🙇
1 parent c34211f commit 58f34da

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

‎CDT/include/Triangulation.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,7 @@ class CDT_EXPORT Triangulation
737737

738738
std::vector<TriInd> m_dummyTris;
739739
TNearPointLocator m_nearPtLocator;
740-
std::size_t m_nTargetVerts;
740+
IndexSizeType m_nTargetVerts;
741741
SuperGeometryType::Enum m_superGeomType;
742742
VertexInsertionOrder::Enum m_vertexInsertionOrder;
743743
IntersectingConstraintEdges::Enum m_intersectingEdgesStrategy;

‎CDT/include/Triangulation.hpp‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ template <typename T, typename TNearPointLocator>
291291
void Triangulation<T, TNearPointLocator>::initializedWithCustomSuperGeometry()
292292
{
293293
m_nearPtLocator.initialize(vertices);
294-
m_nTargetVerts = vertices.size();
294+
m_nTargetVerts = static_cast<IndexSizeType>(vertices.size());
295295
m_superGeomType = SuperGeometryType::Custom;
296296
}
297297

@@ -1944,7 +1944,8 @@ void Triangulation<T, TNearPointLocator>::insertVertices_KDTreeBFS(
19441944
V2d<T> boxMax)
19451945
{
19461946
// calculate original indices
1947-
const VertInd vertexCount = vertices.size() - superGeomVertCount;
1947+
const VertInd vertexCount =
1948+
static_cast<IndexSizeType>(vertices.size()) - superGeomVertCount;
19481949
if(vertexCount <= 0)
19491950
return;
19501951
std::vector<VertInd> ii(vertexCount);

0 commit comments

Comments
 (0)