From 904e0cd87ed2a5d2b8442a18384204ece21a652c Mon Sep 17 00:00:00 2001
From: Marek Roszko <mark.roszko@gmail.com>
Date: Fri, 29 Nov 2024 10:55:12 -0500
Subject: [PATCH] Silence build warning about int to double cast

---
 libs/kimath/include/math/vector2d.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libs/kimath/include/math/vector2d.h b/libs/kimath/include/math/vector2d.h
index 40f42da966..d789de6007 100644
--- a/libs/kimath/include/math/vector2d.h
+++ b/libs/kimath/include/math/vector2d.h
@@ -556,7 +556,7 @@ constexpr typename VECTOR2<T>::extended_type VECTOR2<T>::Dot( const VECTOR2<T>&
 template <class T>
 double VECTOR2<T>::Distance( const VECTOR2<extended_type>& aVector ) const
 {
-    VECTOR2<double> diff( aVector.x - x, aVector.y - y );
+    VECTOR2<double> diff( static_cast<double>( aVector.x - x ), static_cast<double>( aVector.y - y ) );
     return diff.EuclideanNorm();
 }