From 52bf337b551762c419aad01ab5f36218d1a99481 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Sun, 21 May 2023 16:05:44 +0200 Subject: [PATCH] vector2d.h: fix for the fix of the awrning fix. --- libs/kimath/include/math/vector2d.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/kimath/include/math/vector2d.h b/libs/kimath/include/math/vector2d.h index a319f6aaf7..313e0d89b7 100644 --- a/libs/kimath/include/math/vector2d.h +++ b/libs/kimath/include/math/vector2d.h @@ -363,7 +363,7 @@ VECTOR2 VECTOR2::Resize( T aNewLength ) const static_cast( ( y < 0 ? -1 : 1 ) * KiROUND( std::sqrt( rescale( l_sq_new, (extended_type) y * y, l_sq_current ) ) ) - * sign( aNewLength ) ) ); + ) ) * sign( aNewLength ); } else { @@ -373,7 +373,7 @@ VECTOR2 VECTOR2::Resize( T aNewLength ) const static_cast( ( y < 0 ? -1 : 1 ) * std::sqrt( rescale( l_sq_new, (extended_type) y * y, l_sq_current ) ) - * sign( aNewLength ) )); + )) * sign( aNewLength ); } }