Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2019-07-16 10:19:00 +0300
committerbubnikv <bubnikv@gmail.com>2019-07-16 10:19:00 +0300
commit4865240a9cd79069cc9e72bfa2e44451c55ef5c6 (patch)
tree8ca3a27ae7289caea68d9faf37b76f7f245d95b4 /src
parentdc80616bf6b5f5232fe30d96dcfa024da83ab0b9 (diff)
Fixed compilation issue
Diffstat (limited to 'src')
-rw-r--r--src/libslic3r/PrintObject.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libslic3r/PrintObject.cpp b/src/libslic3r/PrintObject.cpp
index 72fab8739..37cf0cccc 100644
--- a/src/libslic3r/PrintObject.cpp
+++ b/src/libslic3r/PrintObject.cpp
@@ -2351,7 +2351,7 @@ void PrintObject::discover_horizontal_shells()
// Slic3r::debugf "Layer %d has %s surfaces\n", $i, ($type == S_TYPE_TOP) ? 'top' : 'bottom';
size_t solid_layers = (type == stTop) ? region_config.top_solid_layers.value : region_config.bottom_solid_layers.value;
- for (int n = (type == stTop) ? i-1 : i+1; std::abs(n - i) < solid_layers; (type == stTop) ? -- n : ++ n) {
+ for (int n = (type == stTop) ? i-1 : i+1; std::abs(n - (int)i) < solid_layers; (type == stTop) ? -- n : ++ n) {
if (n < 0 || n >= int(m_layers.size()))
continue;
// Slic3r::debugf " looking for neighbors on layer %d...\n", $n;