diff --git a/common/tool/selection.cpp b/common/tool/selection.cpp index e25aacf76e..f0f67c1d83 100644 --- a/common/tool/selection.cpp +++ b/common/tool/selection.cpp @@ -95,7 +95,7 @@ VECTOR2I SELECTION::GetCenter() const for( EDA_ITEM* item : m_items ) center += item->GetPosition(); - center = center / m_items.size(); + center = center / static_cast( m_items.size() ); return static_cast( center ); }