From c823ea07106599649add3705d87da8416703bc6b Mon Sep 17 00:00:00 2001 From: enricoturri1966 Date: Tue, 25 Jan 2022 16:20:33 +0100 Subject: [PATCH] Fixed build on asan linux --- src/slic3r/GUI/GLCanvas3D.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slic3r/GUI/GLCanvas3D.cpp b/src/slic3r/GUI/GLCanvas3D.cpp index d9e515b2ad..4898b63510 100644 --- a/src/slic3r/GUI/GLCanvas3D.cpp +++ b/src/slic3r/GUI/GLCanvas3D.cpp @@ -467,7 +467,7 @@ void GLCanvas3D::LayersEditing::render_profile(const Rect& bar_rect) const entity.positions.reserve(m_layer_height_profile.size()); entity.normals.reserve(m_layer_height_profile.size()); entity.indices.reserve(m_layer_height_profile.size()); - for (unsigned int i = 0; i < unsigned int(m_layer_height_profile.size()); i += 2) { + for (unsigned int i = 0; i < (unsigned int)m_layer_height_profile.size(); i += 2) { entity.positions.emplace_back(bar_rect.get_left() + float(m_layer_height_profile[i + 1]) * scale_x, bar_rect.get_bottom() + float(m_layer_height_profile[i]) * scale_y, 0.0f); entity.normals.emplace_back(Vec3f::UnitZ()); entity.indices.emplace_back(i / 2);