Skip to content

Commit 3afea2e

Browse files
committed
CutSurface.cpp:683:36: fix warnings: comparison of integer expressions of different signedness
1 parent 0bc8b25 commit 3afea2e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libslic3r/CutSurface.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -680,9 +680,9 @@ indexed_triangle_set Slic3r::cut2model(const SurfaceCut &cut,
680680
assert(i.x() + back_offset < result.vertices.size());
681681
assert(i.y() + back_offset < result.vertices.size());
682682
assert(i.z() + back_offset < result.vertices.size());
683-
assert(i.x() >= 0 && i.x() < cut.vertices.size());
684-
assert(i.y() >= 0 && i.y() < cut.vertices.size());
685-
assert(i.z() >= 0 && i.z() < cut.vertices.size());
683+
assert(i.x() >= 0 && i.x() < static_cast<int>(cut.vertices.size()));
684+
assert(i.y() >= 0 && i.y() < static_cast<int>(cut.vertices.size()));
685+
assert(i.z() >= 0 && i.z() < static_cast<int>(cut.vertices.size()));
686686
// Y and Z is swapped CCW triangles for back side
687687
result.indices.emplace_back(i.x() + back_offset,
688688
i.z() + back_offset,

0 commit comments

Comments
 (0)