From 258fd07939c96459131a66186da71430d08b2210 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Sun, 11 Apr 2021 16:56:02 +0200 Subject: [PATCH] Fix a compil issue (at least on msys2) --- libs/kimath/src/geometry/shape_line_chain.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/kimath/src/geometry/shape_line_chain.cpp b/libs/kimath/src/geometry/shape_line_chain.cpp index 0de1f7cc9a..242c2adbdc 100644 --- a/libs/kimath/src/geometry/shape_line_chain.cpp +++ b/libs/kimath/src/geometry/shape_line_chain.cpp @@ -309,9 +309,9 @@ void SHAPE_LINE_CHAIN::Replace( int aStartIndex, int aEndIndex, const SHAPE_LINE // The total new arcs index is added to the new arc indices size_t prev_arc_count = m_arcs.size(); - std::vector new_shapes = aLine.m_shapes; + std::vector new_shapes = aLine.m_shapes; - for( long& shape : new_shapes ) + for( ssize_t& shape : new_shapes ) { if( shape >= 0 ) shape += prev_arc_count;